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));