正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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']; |
-
请 注册 或 登录 后发表评论