From c1b5b2f71688920a4e5ef3b471820392cb7a9f68 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 12 Aug 2020 19:35:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 1bc38bff5..3d6c712ab 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -398,9 +398,6 @@ class CompanyStatementPoolController extends ThinkController if($is_export){ $v['statement_money_exp'] .= "K{$line}+"; $va['d_statement_money'] = "=F{$line}*G{$line}"; - $count['platform_amount_exp'] .= "E{$line}+"; - $count['platform_amount_exp2'] .= "F{$line}+"; - $count['d_statement_money_exp'] .= "K{$line}+"; }else{ $va['d_statement_money'] = round($va['pay_amount']*$va['ratio']/100,2); $count['platform_amount'] += $va['pay_amount']; @@ -412,9 +409,6 @@ class CompanyStatementPoolController extends ThinkController if($is_export){ $v['statement_money_exp'] .= "M{$cline}-L{$cline}"; $v['statement_money'] = $v['statement_money_exp']; - $count['fine_exp'] .= "L{$cline}+"; - $count['reward_exp'] .= "M{$cline}+"; - $count['statement_money_exp'] .= "N{$cline}+"; }else{ $count['fine'] += $v['fine']; $count['reward'] += $v['reward']; @@ -424,12 +418,12 @@ class CompanyStatementPoolController extends ThinkController } if($is_export){ - $count["d_statement_money"] = "=".trim($count["d_statement_money_exp"],"+"); - $count["platform_amount"] = "=".trim($count["platform_amount_exp"],"+"); - $count["platform_amount2"] = "=".trim($count["platform_amount_exp2"],"+"); - $count["fine"] = "=".trim($count["fine_exp"],"+"); - $count["reward"] = "=".trim($count["reward_exp"],"+"); - $count["statement_money"] = "=".trim($count["statement_money_exp"],"+"); + $count["d_statement_money"] = "=SUM(K3:K".$line.")"; + $count["platform_amount"] = "=SUM(E3:E".$line.")"; + $count["platform_amount2"] = "=SUM(F3:F".$line.")"; + $count["fine"] = "=SUM(L3:L".$line.")"; + $count["reward"] = "=SUM(M3:M".$line.")"; + $count["statement_money"] = "=SUM(N3:N".$line.")"; } // dd($infolist); $this->assign("data",$infolist);