From bb4c7519a50b08e83b39e5c1b9af3224f314c687 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Aug 2021 09:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=80=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/StatementWarningController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{