From 7c5c67a87c96c2b83deca4d4e1b83d38cd18163b Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Thu, 3 Dec 2020 11:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4,=E5=8F=8A=E5=A4=9A=E4=B8=AA=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 18 ++++++++++- .../View/CompanyStatementPool/editPuPool.html | 30 +++++++++++++++---- 2 files changed, 42 insertions(+), 6 deletions(-) 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