优化下游公司导出

master
chenzhi 4 years ago
parent 51778a2a73
commit 0a049e0391

@ -322,10 +322,6 @@ class CompanyStatementPoolController extends ThinkController
$v['statement_money_exp'] .= "H{$line}+";
$va['d_statement_money'] = "=D{$line}*(1-G{$line})*(E{$line}+F{$line})";
$count['platform_amount_exp'] .= "D{$line}+";
$count['d_statement_money_exp'] .= "H{$line}+";
}else{
$va['d_statement_money'] = round($va['pay_amount']*($va['ratio']+$va['increment_ratio'])*(100-$va['fax_ratio'])/100/100,2);
@ -339,11 +335,6 @@ class CompanyStatementPoolController extends ThinkController
if($is_export){
$v['statement_money_exp'] .= "J{$cline}-I{$cline}";
$v['statement_money'] = $v['statement_money_exp'];
$count['fine_exp'] .= "I{$cline}+";
$count['reward_exp'] .= "J{$cline}+";
$count['statement_money_exp'] .= "K{$cline}+";
}else{
$count['fine'] += $v['fine'];
$count['reward'] += $v['reward'];
@ -353,11 +344,11 @@ 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["fine"] = "=".trim($count["fine_exp"],"+");
$count["reward"] = "=".trim($count["reward_exp"],"+");
$count["statement_money"] = "=".trim($count["statement_money_exp"],"+");
$count["platform_amount"] = "=SUM(D2:D".$line.")";
$count["d_statement_money"] = "=SUM(H2:H".$line.")";
$count["fine"] = "=SUM(I2:I".$line.")";
$count["reward"] = "=SUM(J2:J".$line.")";
$count["statement_money"] = "=SUM(K2:K".$line.")";
}
// dd($infolist);
$this->assign("data",$infolist);

Loading…
Cancel
Save