diff --git a/Application/Admin/Controller/StatementWarningController.class.php b/Application/Admin/Controller/StatementWarningController.class.php index 25ff86431..042bf3b7b 100644 --- a/Application/Admin/Controller/StatementWarningController.class.php +++ b/Application/Admin/Controller/StatementWarningController.class.php @@ -55,9 +55,10 @@ class StatementWarningController extends AdminController { $lastUpdate = $this->statementWarningModel->where([ 'count_year'=>$_REQUEST['year'], + 'count_month'=>date('m',time()), "name"=>'wm_platm', "type"=>1 - ])->field("MAX(count_month),create_time")->find(); + ])->field("create_time")->find(); if($lastUpdate){ $lastUpdate = date('Y-m-d H:i:s',$lastUpdate['create_time']); }else{