0511
This commit is contained in:
@@ -1225,7 +1225,7 @@ class Customers extends Wxapp
|
||||
}
|
||||
}
|
||||
!$str_uids && $str_uids = '-1';
|
||||
$where["id in(select customer_id from lc_receiver_customer_oplogs where type={$oplogs_type} and uid in({$str_uids}) and c_time>={$s_c_time} and c_time<={$e_c_time})"] = null;
|
||||
$where["(of2_id = 10 and c_time>={$s_c_time} and c_time<={$e_c_time}) OR id in(select customer_id from lc_receiver_customer_oplogs where type={$oplogs_type} and uid in({$str_uids}) and c_time>={$s_c_time} and c_time<={$e_c_time})"] = null;
|
||||
$count = $this->customers_model->count($where);
|
||||
}
|
||||
}
|
||||
@@ -1243,16 +1243,6 @@ class Customers extends Wxapp
|
||||
foreach ($rows as $k => $v) {
|
||||
$mobile = $nickname = $avatar = '';
|
||||
$re_item = [];
|
||||
if ($v['external_userid']) {//查找企微用户
|
||||
$where_wec = ['external_userid' => $v['external_userid']];
|
||||
$v['userid'] && $where_wec['userid'] = $v['userid'];
|
||||
$res_wec = $this->mdWechat->get($where_wec);
|
||||
if ($res_wec) {
|
||||
$mobile = $res_wec['mobile'];
|
||||
$nickname = $res_wec['name'];
|
||||
$avatar = $res_wec['avatar'];
|
||||
}
|
||||
}
|
||||
if ($mobile) {//查找关连客户
|
||||
$where = ['mobile' => $mobile, 'status>=' => 0];
|
||||
$this->biz_id && $where['biz_id'] = $this->biz_id;
|
||||
|
||||
Reference in New Issue
Block a user