优化上游导出公式

master
chenzhi 4 years ago
parent d7a9663d46
commit c1b5b2f716

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

Loading…
Cancel
Save