特殊补点导出修正

master
zhengyongxing 4 years ago
parent feb46d1954
commit 7054f82fde

@ -591,6 +591,8 @@ class CompanyStatementController extends ThinkController
$line = 1;
$count = [];
$week_line = 2;
//获取对接人
foreach($infolist as $k=>&$v){
$infolist[$k]['reward'] = 0;
@ -622,6 +624,9 @@ class CompanyStatementController extends ThinkController
$v['statement_money'] = "=ROUND(";
}
$handle_data = A("CompanyStatementPool")->changeDataStruct($v['statement_info'],$is_export,$week_line);
$v['statement_info'] = $handle_data;
$row = 0;
foreach($v['statement_info'] as $ke=>&$va){
$va['row'] = count($va['game_list']);
@ -639,12 +644,12 @@ class CompanyStatementController extends ThinkController
if($is_export){
if($v['withdraw_type'] != 3) {
$val['sum_money'] = "=ROUND(K{$line}*(L{$line}+M{$line}),2)";
$val['sum_money'] = "=ROUND((K{$line}-L{$line})*(M{$line}+N{$line}),2)";
} else {
$val['sum_money'] = "=ROUND(K{$line}*(M{$line}),2)";
$val['sum_money'] = "=ROUND((K{$line}-L{$line})*(N{$line}),2)";
}
// $val['sum_money'] = "=J{$line}*(K{$line}+L{$line})";
$v['statement_money'] .= "N{$line}+";
$v['statement_money'] .= "S{$line}+";
}else{
$count['platform_amount'] += $val['pay_amount'];
$count['sum_money'] += $val['sum_money'];
@ -674,10 +679,18 @@ class CompanyStatementController extends ThinkController
}
}
// if($is_export){
// $count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)";
// $count["sum_money"] = "=ROUND(SUM(Q2:Q".$line."),2)";
// }
if($is_export){
$count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)";
$count["sum_money"] = "=ROUND(SUM(Q2:Q".$line."),2)";
$count["week_money"] = "=ROUND(SUM(S2:S".$line."),2)";
$count["sum_money"] = "=ROUND(SUM(T2:T".$line."),2)";
}
$this->assign("withdraw_type",3);
$this->assign("data",$infolist);
$this->assign("count",$count);
$this->assign("is_export",$is_export);

Loading…
Cancel
Save