正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -77,8 +77,8 @@ class WeekProject extends Command | @@ -77,8 +77,8 @@ class WeekProject extends Command | ||
| 77 | // 上一周的结束时间(周日 23:59:59) | 77 | // 上一周的结束时间(周日 23:59:59) |
| 78 | $endOfLastWeek = strtotime("last week sunday 23:59:59"); | 78 | $endOfLastWeek = strtotime("last week sunday 23:59:59"); |
| 79 | // 格式化为日期时间字符串 | 79 | // 格式化为日期时间字符串 |
| 80 | - $startOfLastWeekFormatted = date('Y-m-d', $startOfLastWeek); | ||
| 81 | - $endOfLastWeekFormatted = date('Y-m-d', $endOfLastWeek); | 80 | + $data['start_date'] = $startOfLastWeekFormatted = date('Y-m-d', $startOfLastWeek); |
| 81 | + $data['end_date'] = $endOfLastWeekFormatted = date('Y-m-d', $endOfLastWeek); | ||
| 82 | $countModel = new Count(); | 82 | $countModel = new Count(); |
| 83 | $startOfLastWeekFormattedInfo = $countModel->read(['date'=>$startOfLastWeekFormatted,'project_id'=>$value['id']],['inquiry_num','country']); | 83 | $startOfLastWeekFormattedInfo = $countModel->read(['date'=>$startOfLastWeekFormatted,'project_id'=>$value['id']],['inquiry_num','country']); |
| 84 | $endOfLastWeekFormattedInfo = $countModel->read(['date'=>$endOfLastWeekFormatted,'project_id'=>$value['id']],['inquiry_num','country']); | 84 | $endOfLastWeekFormattedInfo = $countModel->read(['date'=>$endOfLastWeekFormatted,'project_id'=>$value['id']],['inquiry_num','country']); |
-
请 注册 或 登录 后发表评论