作者 lyh

gx

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