增加月开工率

This commit is contained in:
lcc
2025-01-08 15:50:24 +08:00
parent 65c3031fc8
commit d86c7ba50a
+2 -2
View File
@@ -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));