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 @@ {$com['statement_info'][0]['game_list'][0]['sum_money']} - {$com['reward']} - {$com['fine']} + {$com['reward']} + {$com['fine']} @@ -232,7 +232,10 @@ % % - {$game['sum_money']} + + {$game['sum_money']} + + @@ -262,7 +265,17 @@ % % - {$account['game_list'][0]['sum_money']} + + {$account['game_list'][0]['sum_money']} + + + + + + {$account['reward']|default=0} + {$account['fine']|default=0} + + @@ -297,7 +310,10 @@ % % - {$game['sum_money']} + + {$game['sum_money']} + + @@ -545,12 +561,16 @@ for (var i =0;i