|
|
@ -323,7 +323,6 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
if($tratio <= 0){continue;}
|
|
|
|
if($tratio <= 0){continue;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($v['first_company_type'] == 1){
|
|
|
|
if($v['first_company_type'] == 1){
|
|
|
|
$game['first_ratio']=$tratio;
|
|
|
|
$game['first_ratio']=$tratio;
|
|
|
|
$game['second_ratio']=100-$tratio;
|
|
|
|
$game['second_ratio']=100-$tratio;
|
|
|
@ -767,7 +766,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$spenMap['s.promote_id']=["in",$pres['ids']];
|
|
|
|
$spenMap['s.promote_id']=["in",$pres['ids']];
|
|
|
|
//获取支付记录
|
|
|
|
//获取支付记录
|
|
|
|
$list = $Spend->alias('s')->field('sum(s.pay_amount) pay_amount,s.game_id,g.relation_game_id,g.relation_game_name game_name')->where($spenMap)->group('game_id')
|
|
|
|
$list = $Spend->alias('s')->field('sum(s.pay_amount) pay_amount,s.game_id,g.relation_game_id,g.relation_game_name game_name')->where($spenMap)->group('game_id')
|
|
|
|
->join("tab_game g on s.game_id = g.id")
|
|
|
|
->join("left join tab_game g on s.game_id = g.id")
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
if(empty($list)){continue;}
|
|
|
|
if(empty($list)){continue;}
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|