Merge pull request '优化最新时间读取' (#478) from feature/more_payment into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/478
master
廖金灵 3 years ago
commit 08d2220a75

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