1
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user