From d86c7ba50a685419c7271991a283c4c5e1cfef3c Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 8 Jan 2025 15:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=88=E5=BC=80=E5=B7=A5?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controllers/plan/Report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/plan/Report.php b/api/controllers/plan/Report.php index fa1659c4..e3d56fc2 100644 --- a/api/controllers/plan/Report.php +++ b/api/controllers/plan/Report.php @@ -26,7 +26,7 @@ class Report extends HD_Controller { $day = $this->input->get('day'); !$day && $day = date('Y-m-d', strtotime('yesterday')); - $month = date('m', strtotime($day)); + $month = date('Y-m', strtotime($day)); $getPage = $this->input->get('page'); $size = $this->input->get('size'); $t_limit = $this->input->get('time_limit'); @@ -97,7 +97,7 @@ class Report extends HD_Controller //今日线索逾期数 $cust_delay = $this->receiver_score_log_model->count(array('day' => $day, 'biz_id' => $v['id'], 'type' => 3, 'sub_type' => 3, 'target_id >' => 0)); //本月开工 - $works_month = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 0, 'sub_type' => 0, 'score >' => 0)); + $works_month = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 0, 'sub_type' => 0, 'score >' => 0), 'biz_id,uid'); //本月线索逾期数 $cust_delay_month = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 3, 'sub_type' => 3, 'target_id >' => 0));