作者 lyh

gx

@@ -30,6 +30,7 @@ class MonthReportController extends BaseController @@ -30,6 +30,7 @@ class MonthReportController extends BaseController
30 public function getMonth(){ 30 public function getMonth(){
31 $monthCountModel = new MonthCount(); 31 $monthCountModel = new MonthCount();
32 $this->map['project_id'] = $this->user['project_id']; 32 $this->map['project_id'] = $this->user['project_id'];
  33 + $this->map['month'] = ['>=',date('Y-m',strtotime($this->user['uptime']))];
33 $month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray(); 34 $month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray();
34 $this->response('success',Code::SUCCESS,$month); 35 $this->response('success',Code::SUCCESS,$month);
35 } 36 }