diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 50f3f3fba..fe264dc23 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -1710,6 +1710,8 @@ class CompanyStatementPoolController extends ThinkController $lreward = 0; $lfine = 0; + $handledata = []; + foreach ($increment_ratio as $key => $value) { @@ -1718,8 +1720,22 @@ class CompanyStatementPoolController extends ThinkController if ($st[$key][$akey] == 1) { $model = M("company_statement_info","tab_"); + + if (!$handledata[$key][1]) { + $handledata[$key][1] = 1; + } else { + continue; + } + + } else { $model = M("company_lack_statement_info","tab_"); + + if (!$handledata[$key][0]) { + $handledata[$key][0] = 1; + } else { + continue; + } } $statement_data = $model->where(['id'=>$key])->find(); @@ -1776,7 +1792,7 @@ class CompanyStatementPoolController extends ThinkController } - +//die(); M("company_statement_pool","tab_")->where(['id'=>$id])->save(['pay_amount'=>$statement_amount,'statement_money'=>$statement_amount+$reward-$fine,'lack_statement_money'=>$statement_lack_amount+$lreward-$lfine]); $this->ajaxReturn(['status'=>1,'info'=>'保存成功']); diff --git a/Application/Admin/View/CompanyStatementPool/editPuPool.html b/Application/Admin/View/CompanyStatementPool/editPuPool.html index d0e7b276e..cdb9aebdd 100644 --- a/Application/Admin/View/CompanyStatementPool/editPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/editPuPool.html @@ -172,8 +172,8 @@