优化重算

master
chenzhi 4 years ago
parent 84e1b5c0f3
commit 170895055e

@ -43,7 +43,8 @@ class FinancialSummaryController extends AdminController
} }
public function updateStatement() public function updateStatement()
{ {
$temp = date('Y',time()).'-'.(date('m',time())-1);
$temp = date('Y-m',strtotime(date('Y',time()).'-'.(date('m',time())-1).'-01'));
$params = "php ".SUBSITE_INDEX." FinancialSummarySet/setMonthFinancialSummary/recount/1/count_date/{$temp}"; $params = "php ".SUBSITE_INDEX." FinancialSummarySet/setMonthFinancialSummary/recount/1/count_date/{$temp}";
$r = D("CmdTasks")->addTask("FinancialSummary",$params); $r = D("CmdTasks")->addTask("FinancialSummary",$params);
if($r){ if($r){

Loading…
Cancel
Save