|
...
|
...
|
@@ -27,11 +27,14 @@ class MonthReportController extends BaseController |
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/2/2 15:14
|
|
|
|
* @param :is_upgrade;1->升级项目
|
|
|
|
*/
|
|
|
|
public function getMonth(){
|
|
|
|
$monthCountModel = new MonthCount();
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$this->map['month'] = ['>=',date('Y-m',strtotime($this->user['uptime']))];
|
|
|
|
if($this->user['is_upgrade'] != 1){
|
|
|
|
$this->map['month'] = ['>=',date('Y-m',strtotime($this->user['uptime']))];
|
|
|
|
}
|
|
|
|
$month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray();
|
|
|
|
$this->response('success',Code::SUCCESS,$month);
|
|
|
|
}
|
...
|
...
|
|