作者 lyh

gx数据

@@ -116,8 +116,9 @@ class OptimizationReportController extends BaseController @@ -116,8 +116,9 @@ class OptimizationReportController extends BaseController
116 // 获取当前月的结束时间 116 // 获取当前月的结束时间
117 $endTime = date('Y-m-t', strtotime($this->param['date'])); 117 $endTime = date('Y-m-t', strtotime($this->param['date']));
118 $arr = []; 118 $arr = [];
  119 + $date = date('Y-m', strtotime($this->param['date']));
119 $monthCountModel = new MonthCount(); 120 $monthCountModel = new MonthCount();
120 - $month_info = $monthCountModel->read(['project_id'=>$project_id,'month'=>$this->param['date']]); 121 + $month_info = $monthCountModel->read(['project_id'=>$project_id,'month'=>$date]);
121 if($month_info !== false){ 122 if($month_info !== false){
122 $arr['country'] = $month_info['country']; 123 $arr['country'] = $month_info['country'];
123 $arr['total'] = $month_info['total']; 124 $arr['total'] = $month_info['total'];