增加月开工率

This commit is contained in:
lcc
2025-01-08 15:28:25 +08:00
parent 1148b91500
commit 65c3031fc8
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -96,6 +96,8 @@ 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));
//本月线索逾期数
$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));
@@ -143,6 +145,7 @@ class Report extends HD_Controller
'order_early' => $order_early,
'score' => round($score['score']),
'work_per_month' => number_format($works_month / $sales, 2) * 100,
'cust_month' => $cust_month,
'cust_push_month' => $cust_push_month,
'cust_visit_month' => $cust_visit_month,