This commit is contained in:
xiaoyu
2025-05-11 22:09:40 +08:00
parent 5a626de9a4
commit 31b2d7047e
+1 -11
View File
@@ -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;