|
|
@ -930,6 +930,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
if(empty($list)){continue;}
|
|
|
|
if(empty($list)){continue;}
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|
foreach($list as $k=>$v){
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$res[$company_id]["pay_amount"] += $v['pay_amount'];
|
|
|
|
$res[$company_id]["pay_amount"] += $v['pay_amount'];
|
|
|
|
} catch (\Throwable $th) {
|
|
|
|
} catch (\Throwable $th) {
|
|
|
@ -937,11 +938,14 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isset($res[$company_id][$v['relation_game_id']])){
|
|
|
|
if(isset($res[$company_id][$v['relation_game_id']])){
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
$res[$company_id][$v['relation_game_id']]['pay_amount'] += $v['pay_amount'];
|
|
|
|
$res[$company_id][$v['relation_game_id']]['pay_amount'] += $v['pay_amount'];
|
|
|
|
|
|
|
|
|
|
|
|
$res[$company_id][$v['relation_game_id']]['ratio_pay_amount'] += $v['pay_amount'];
|
|
|
|
$res[$company_id][$v['relation_game_id']]['ratio_pay_amount'] += $v['pay_amount'];
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
unset($v['game_id']);
|
|
|
|
unset($v['game_id']);
|
|
|
|
|
|
|
|
$v['ratio_pay_amount'] = $v['pay_amount'];
|
|
|
|
$res[$company_id][$v['relation_game_id']]= $v;
|
|
|
|
$res[$company_id][$v['relation_game_id']]= $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -950,6 +954,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$game_ids = $this->getModuleRatioGame($company_id,$game_ids,$begintime,$endtime);
|
|
|
|
$game_ids = $this->getModuleRatioGame($company_id,$game_ids,$begintime,$endtime);
|
|
|
|
$sameGame = $this->getTheSameGame($game_ids);
|
|
|
|
$sameGame = $this->getTheSameGame($game_ids);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!empty($sameGame)){
|
|
|
|
if(!empty($sameGame)){
|
|
|
|
foreach ($sameGame as $k => $v) {
|
|
|
|
foreach ($sameGame as $k => $v) {
|
|
|
|
|
|
|
|
|
|
|
@ -983,6 +988,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($res as $key=>$value){
|
|
|
|
foreach($res as $key=>$value){
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($value as $k => $v){
|
|
|
|
foreach ($value as $k => $v){
|
|
|
|