作者 lyh

gx数据

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