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