From 713b6acd596ce0c013afa43c9184bcc388d239dd Mon Sep 17 00:00:00 2001 From: lin fan Date: Mon, 4 Nov 2024 22:21:38 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Score.php | 2 +- common/libraries/receiver/Score_entity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index 71a048e8..9f3fe90e 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -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); diff --git a/common/libraries/receiver/Score_entity.php b/common/libraries/receiver/Score_entity.php index 1feb1740..9539e007 100644 --- a/common/libraries/receiver/Score_entity.php +++ b/common/libraries/receiver/Score_entity.php @@ -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';