作者 lyh

gx

@@ -27,7 +27,7 @@ class MonthCountController extends BaseController @@ -27,7 +27,7 @@ class MonthCountController extends BaseController
27 * @time :2023/6/30 17:58 27 * @time :2023/6/30 17:58
28 */ 28 */
29 public function lists(MonthCountLogic $monthCountLogic){ 29 public function lists(MonthCountLogic $monthCountLogic){
30 - $lists = $monthCountLogic->getCountLists($this->map,$this->page,$this->row = 10,$this->order); 30 + $lists = $monthCountLogic->getCountLists($this->map,$this->order);
31 $this->response('success',Code::SUCCESS,$lists); 31 $this->response('success',Code::SUCCESS,$lists);
32 } 32 }
33 33
@@ -26,11 +26,11 @@ class MonthCountLogic extends BaseLogic @@ -26,11 +26,11 @@ class MonthCountLogic extends BaseLogic
26 * @method :post 26 * @method :post
27 * @time :2023/7/3 9:39 27 * @time :2023/7/3 9:39
28 */ 28 */
29 - public function getCountLists($map,$page,$row = 10,$order = 'created_at',$filed = ['*']){ 29 + public function getCountLists($map,$order = 'created_at',$filed = ['*']){
30 $map['project_id'] = $this->user['project_id']; 30 $map['project_id'] = $this->user['project_id'];
31 - $lists = $this->model->lists($map,$page,$row,$order,$filed); 31 + $lists = $this->model->list($map,$order,$filed);
32 if(!empty($lists)){ 32 if(!empty($lists)){
33 - $lists['list']['new'] = $this->currentMonthCount(); 33 + $lists['new'] = $this->currentMonthCount();
34 } 34 }
35 return $this->success($lists); 35 return $this->success($lists);
36 } 36 }