Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -26,6 +26,7 @@ class MonthCountLogic extends BaseLogic | @@ -26,6 +26,7 @@ class MonthCountLogic extends BaseLogic | ||
| 26 | * @time :2023/7/3 9:39 | 26 | * @time :2023/7/3 9:39 |
| 27 | */ | 27 | */ |
| 28 | public function getCountLists($map,$page,$row = 10,$order = 'created_at',$filed = ['*']){ | 28 | public function getCountLists($map,$page,$row = 10,$order = 'created_at',$filed = ['*']){ |
| 29 | + $map['project_id'] = $this->user['project_id']; | ||
| 29 | $lists = $this->model->lists($map,$page,$row,$order,$filed); | 30 | $lists = $this->model->lists($map,$page,$row,$order,$filed); |
| 30 | if(!empty($lists)){ | 31 | if(!empty($lists)){ |
| 31 | $lists['list']['new'] = $this->currentMonthCount(); | 32 | $lists['list']['new'] = $this->currentMonthCount(); |
| @@ -162,6 +163,9 @@ class MonthCountLogic extends BaseLogic | @@ -162,6 +163,9 @@ class MonthCountLogic extends BaseLogic | ||
| 162 | $count = new Count(); | 163 | $count = new Count(); |
| 163 | $startTime = date("Y-m-d", strtotime("-9 months", mktime(0, 0, 0))); | 164 | $startTime = date("Y-m-d", strtotime("-9 months", mktime(0, 0, 0))); |
| 164 | $ensTime = date('Y-m-d',time()); | 165 | $ensTime = date('Y-m-d',time()); |
| 166 | + var_dump($startTime); | ||
| 167 | + var_dump($ensTime); | ||
| 168 | + die(); | ||
| 165 | $lists = $count->read(['date'=>['between',[$startTime,$ensTime]]]); | 169 | $lists = $count->read(['date'=>['between',[$startTime,$ensTime]]]); |
| 166 | return $this->success($lists); | 170 | return $this->success($lists); |
| 167 | } | 171 | } |
-
请 注册 或 登录 后发表评论