|
|
@ -353,7 +353,7 @@ class StatementWarningController extends AdminController
|
|
|
|
|
|
|
|
|
|
|
|
private function getMonthLastUpdate($year,$month)
|
|
|
|
private function getMonthLastUpdate($year,$month)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$lastUpdate = $this->statementWarningModel->where([
|
|
|
|
$lastUpdate = $this->statementWarningInfoModel->where([
|
|
|
|
'count_year'=>$year,
|
|
|
|
'count_year'=>$year,
|
|
|
|
'count_month'=>$month,
|
|
|
|
'count_month'=>$month,
|
|
|
|
])->field("MAX(create_time) create_time")->find();
|
|
|
|
])->field("MAX(create_time) create_time")->find();
|
|
|
@ -403,9 +403,11 @@ class StatementWarningController extends AdminController
|
|
|
|
$poolname = 'up_statement';
|
|
|
|
$poolname = 'up_statement';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$preMonth = explode('-',date('Y-m',mktime(0,0,0,$info['count_month'],1,$info['count_year'])-1));
|
|
|
|
|
|
|
|
|
|
|
|
$this->statementWarningModel->where([
|
|
|
|
$this->statementWarningModel->where([
|
|
|
|
'count_year'=>$info['count_year'],
|
|
|
|
'count_year'=>$preMonth[0],
|
|
|
|
'count_month'=>$info['count_month'],
|
|
|
|
'count_month'=>$preMonth[1],
|
|
|
|
'name'=>$poolname,
|
|
|
|
'name'=>$poolname,
|
|
|
|
])->setDec('money',$diffMoney);
|
|
|
|
])->setDec('money',$diffMoney);
|
|
|
|
}
|
|
|
|
}
|
|
|
|