Merge pull request '优化重算' (#79) from feature/more_finance_20201211 into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/79
master
廖金灵 4 years ago
commit 468a5ab162

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