diff --git a/api/controllers/wxapp/licheb/Score.php b/api/controllers/wxapp/licheb/Score.php index 6c941fd4..11f87ae1 100644 --- a/api/controllers/wxapp/licheb/Score.php +++ b/api/controllers/wxapp/licheb/Score.php @@ -251,7 +251,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);