|
|
|
@ -1305,6 +1305,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
unset($tmpp);
|
|
|
|
|
|
|
|
|
|
$this->getPuPromoteSpend($pc,array_unique(array_keys($pc)),$begintime,$endtime);
|
|
|
|
|
// dump($pc);die();
|
|
|
|
|
|
|
|
|
|
$StatementDb = M("CompanyStatement","tab_");
|
|
|
|
|
$statement_begin_time = date("Y.m.d",$begintime);
|
|
|
|
@ -1368,7 +1369,8 @@ 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 = $tmp_game_ratio['ratio'];
|
|
|
|
|
$tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
|
|
// $tratio = $tmp_game_ratio['ratio'];
|
|
|
|
|
}else{
|
|
|
|
|
//补点
|
|
|
|
|
$tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
|
@ -1400,7 +1402,8 @@ 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 = $tmp_game_ratio['ratio'];
|
|
|
|
|
$tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
|
|
// $tratio = $tmp_game_ratio['ratio'];
|
|
|
|
|
}else{
|
|
|
|
|
//补点
|
|
|
|
|
$tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
|
|