优化最新时间读取

master
chenzhi 3 years ago
parent a72c549b0c
commit bb4c7519a5

@ -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{

Loading…
Cancel
Save