作者 lyh

gx

@@ -29,9 +29,7 @@ class MonthCountLogic extends BaseLogic @@ -29,9 +29,7 @@ class MonthCountLogic extends BaseLogic
29 public function getCountLists($map,$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->list($map,$order,$filed); 31 $lists = $this->model->list($map,$order,$filed);
32 - if(!empty($lists)){  
33 - $lists['new'] = $this->currentMonthCount();  
34 - } 32 + $lists['new'] = $this->currentMonthCount();
35 return $this->success($lists); 33 return $this->success($lists);
36 } 34 }
37 35