|
|
|
@ -1199,6 +1199,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$count = [];
|
|
|
|
|
|
|
|
|
|
$week_line = 2;
|
|
|
|
|
$withdraw_type = false;
|
|
|
|
|
//获取对接人
|
|
|
|
|
foreach($infolist as $k=>&$v){
|
|
|
|
|
$infolist[$k]['reward'] = 0;
|
|
|
|
@ -1239,6 +1240,9 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$row += count($va['game_list']);
|
|
|
|
|
|
|
|
|
|
foreach($va['game_list'] as $key=>&$val){
|
|
|
|
|
if(!$withdraw_type){
|
|
|
|
|
$withdraw_type = $v['withdraw_type'];
|
|
|
|
|
}
|
|
|
|
|
$line ++;
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
if(isset($val['ratio'])){
|
|
|
|
@ -1250,12 +1254,12 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
$val['sum_money'] = "=ROUND((K{$line}-L{$line})*(M{$line}+N{$line}),2)";
|
|
|
|
|
$val['sum_money'] = "=ROUND((L{$line}-M{$line})*(N{$line}+O{$line}),2)";
|
|
|
|
|
} else {
|
|
|
|
|
$val['sum_money'] = "=ROUND((K{$line}-L{$line})*(N{$line}),2)";
|
|
|
|
|
$val['sum_money'] = "=ROUND((L{$line}-M{$line})*(O{$line}),2)";
|
|
|
|
|
}
|
|
|
|
|
// $val['sum_money'] = "=J{$line}*(K{$line}+L{$line})";
|
|
|
|
|
$v['statement_money'] .= "S{$line}+";
|
|
|
|
|
$v['statement_money'] .= "T{$line}+";
|
|
|
|
|
}else{
|
|
|
|
|
$count['platform_amount'] += $val['pay_amount'];
|
|
|
|
|
$count['sum_money'] += $val['sum_money'];
|
|
|
|
@ -1274,14 +1278,17 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
|
$count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)";
|
|
|
|
|
$count["week_money"] = "=ROUND(SUM(S2:S".$line."),2)";
|
|
|
|
|
$count["sum_money"] = "=ROUND(SUM(T2:T".$line."),2)";
|
|
|
|
|
$count["platform_amount"] = "=ROUND(SUM(L2:L".$line."),2)";
|
|
|
|
|
$count["week_money"] = "=ROUND(SUM(T2:T".$line."),2)";
|
|
|
|
|
$count["sum_money"] = "=ROUND(SUM(U2:U".$line."),2)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->assign("data",$infolist);
|
|
|
|
|
$this->assign("count",$count);
|
|
|
|
|
$this->assign("is_export",$is_export);
|
|
|
|
|
$this->assign("withdraw_type",$withdraw_type);
|
|
|
|
|
|
|
|
|
|
// dd($infolist);
|
|
|
|
|
$this->display("CompanyStatementPool/viewPuPool");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|