This commit is contained in:
lin fan
2024-11-04 22:21:38 +08:00
parent dd3f52ff78
commit 713b6acd59
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ class Score extends Wxapp
//跟进能力
$where_max = $where = [
'status>=' => 0,
"id in (select DISTINCT customer_id from lc_receiver_customer_oplogs where c_time>={$ts_s_time} and c_time>={$ts_e_time}) and cf_platform like 'wxapp'" => null
"id in (select DISTINCT customer_id from lc_receiver_customer_oplogs where c_time>={$ts_s_time} and c_time>={$ts_e_time} and cf_platform like 'wxapp')" => null
];
$where_max["biz_id in ($biz_id_arr)"] = null;
$max = $this->customers_model->count($where_max);
+1 -1
View File
@@ -183,7 +183,7 @@ class Score_entity
$where = [
'status>=' => 0, 'sale_id' => $uid, 'biz_id' => $biz_id,
'c_time>=' => strtotime($day . ' 00:00:00'), 'c_time<=' => strtotime($day . ' 23:59:59'),
"customer_id in (select id from lc_receiver_customers where sales_p_time<{$day} and biz_id={$biz_id})" => null,
"customer_id in (select id from lc_receiver_customers where sales_p_time< '{$day}' and biz_id={$biz_id})" => null,
];
$rows = $receiverOrdersModel->select($where, '', 1, 1000, 'id');
$desc = '线索录入与下单时间间隔少于 T+1';