user_10112_4
This commit is contained in:
@@ -157,11 +157,11 @@ class Licheb extends HD_Controller
|
||||
if ($value['userid']) {
|
||||
$qy_where = ['userid' => $value['userid'], 'c_time>=' => $s_time, 'c_time<=' => $e_time];
|
||||
if ($type == 5) {//异业店
|
||||
$qy_adds = $this->mdDifferentQyLog->count(array_merge($qy_where, ['change_type' => 'add_external_contact']));
|
||||
$qy_dels = $this->mdDifferentQyLog->count(array_merge($qy_where, ["change_type in('del_external_contact','del_follow_user')" => null]));
|
||||
$qy_adds = $this->mdDifferentQyLog->count(array_merge($qy_where, ['change_type' => 'add_external_contact']), 'distinct(external_userid)');
|
||||
$qy_dels = $this->mdDifferentQyLog->count(array_merge($qy_where, ["change_type in('del_external_contact','del_follow_user')" => null]), 'distinct(external_userid)');
|
||||
} else {
|
||||
$qy_adds = $this->mdWechatqyLog->count(array_merge($qy_where, ['change_type' => 'add_external_contact']));
|
||||
$qy_dels = $this->mdWechatqyLog->count(array_merge($qy_where, ["change_type in('del_external_contact','del_follow_user')" => null]));
|
||||
$qy_adds = $this->mdWechatqyLog->count(array_merge($qy_where, ['change_type' => 'add_external_contact']), 'distinct(external_userid)');
|
||||
$qy_dels = $this->mdWechatqyLog->count(array_merge($qy_where, ["change_type in('del_external_contact','del_follow_user')" => null]), 'distinct(external_userid)');
|
||||
}
|
||||
}
|
||||
//改派数
|
||||
|
||||
@@ -373,12 +373,12 @@ class User extends Wxapp
|
||||
$re_biz = $this->biz_model->get(['id' => $biz_id]);
|
||||
if ($re_biz['type'] == 5) {//异业店
|
||||
$this->load->model('app/app_different_qy_log_model', 'mdDifferentQyLog');
|
||||
$today_qy = $this->mdDifferentQyLog->count($where_today_qy);
|
||||
$month_qy = $this->mdDifferentQyLog->count($where_month_qy);
|
||||
$today_qy = $this->mdDifferentQyLog->count($where_today_qy, 'distinct(external_userid)');
|
||||
$month_qy = $this->mdDifferentQyLog->count($where_month_qy, 'distinct(external_userid)');
|
||||
} else {
|
||||
$this->load->model('app/app_lichene_qy_log_model', 'mdWechatqyLog');
|
||||
$today_qy = $this->mdWechatqyLog->count($where_today_qy);
|
||||
$month_qy = $this->mdWechatqyLog->count($where_month_qy);
|
||||
$today_qy = $this->mdWechatqyLog->count($where_today_qy, 'distinct(external_userid)');
|
||||
$month_qy = $this->mdWechatqyLog->count($where_month_qy, 'distinct(external_userid)');
|
||||
}
|
||||
}
|
||||
$where_today_dd[$where_customer_id] = null;
|
||||
|
||||
Reference in New Issue
Block a user