diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index fd6152b8d..12a01ee9e 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -1370,7 +1370,14 @@ class CompanyStatementSetController extends Controller { $tratio += $company_ratio; }elseif($type == 0){ // $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); - $tratio = $tmp_game_ratio['ratio']; +// $tratio = $tmp_game_ratio['ratio']; + $turnover_type = $this->getTurnoverType($v['relation_game_id'],$k,$begintime,$endtime); + + if ($turnover_type == 2) { + $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); + } else { + $tratio = $tmp_game_ratio['ratio']; + } }else{ //补点 $tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); @@ -1402,8 +1409,16 @@ class CompanyStatementSetController extends Controller { $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); $tratio += $company_ratio; }elseif($type == 0){ -// $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); - $tratio = $tmp_game_ratio['ratio']; + + $turnover_type = $this->getTurnoverType($v['relation_game_id'],$k,$begintime,$endtime); + + if ($turnover_type == 2) { + $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']); + } else { + $tratio = $tmp_game_ratio['ratio']; + } + + }else{ //补点 $tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);