|
|
|
@ -120,7 +120,9 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
if(!array_key_exists('bind_coin_count',$v)) $v['bind_coin_count']=0;
|
|
|
|
|
if(!array_key_exists('inside_cash_count',$v)) $v['inside_cash_count']=0;
|
|
|
|
|
$v['promote_account'] = get_promote_name($v['p_id']);
|
|
|
|
|
$v['allcount'] = $v['cash_count']-0+$v['balance_coin_count']+$v['bind_coin_count'];
|
|
|
|
|
|
|
|
|
|
$v['inside_cash_count'] = number_format($v['inside_cash_count'],2,'.','');
|
|
|
|
|
$v['allcount'] = number_format($v['cash_count']-0+$v['balance_coin_count']+$v['bind_coin_count'],2,'.','');
|
|
|
|
|
$count['cash_count'] += $v['cash_count'];
|
|
|
|
|
$count['balance_coin_count'] += $v['balance_coin_count'];
|
|
|
|
|
$count['bind_coin_count'] += $v['bind_coin_count'];
|
|
|
|
@ -164,6 +166,13 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$count['cash_count'] = number_format($count['cash_count'],2,'.','');
|
|
|
|
|
$count['balance_coin_count'] = number_format($count['balance_coin_count'],2,'.','');
|
|
|
|
|
$count['bind_coin_count'] = number_format($count['bind_coin_count'],2,'.','');
|
|
|
|
|
$count['inside_cash_count'] = number_format($count['inside_cash_count'],2,'.','');
|
|
|
|
|
$count['all_count'] = number_format($count['all_count'],2,'.','');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//外团占比
|
|
|
|
|
$this->assign('outBelong',number_format($outBelong/$count['all_count']*100,2,'.',''));
|
|
|
|
|
//内团占比
|
|
|
|
@ -318,7 +327,8 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
if(!array_key_exists('balance_coin_count',$v)) $v['balance_coin_count']=0;
|
|
|
|
|
if(!array_key_exists('bind_coin_count',$v)) $v['bind_coin_count']=0;
|
|
|
|
|
if(!array_key_exists('inside_cash_count',$v)) $v['inside_cash_count']=0;
|
|
|
|
|
$v['allcount'] = $v['cash_count']-0+$v['balance_coin_count']+$v['bind_coin_count'];
|
|
|
|
|
$v['allcount'] = number_format($v['cash_count']-0+$v['balance_coin_count']+$v['bind_coin_count'],2,'.','');
|
|
|
|
|
$v['inside_cash_count'] = number_format($v['inside_cash_count'],2,'.','');
|
|
|
|
|
$allcount['cash_count'] += $v['cash_count'];
|
|
|
|
|
$allcount['balance_coin_count'] += $v['balance_coin_count'];
|
|
|
|
|
$allcount['bind_coin_count'] += $v['bind_coin_count'];
|
|
|
|
@ -327,6 +337,12 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$data[] = $v;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$allcount['cash_count'] = number_format($allcount['cash_count'],2,'.','');
|
|
|
|
|
$allcount['balance_coin_count'] = number_format($allcount['balance_coin_count'],2,'.','');
|
|
|
|
|
$allcount['bind_coin_count'] = number_format($allcount['bind_coin_count'],2,'.','');
|
|
|
|
|
$allcount['inside_cash_count'] = number_format($allcount['inside_cash_count'],2,'.','');
|
|
|
|
|
$allcount['all_count'] = number_format($allcount['all_count'],2,'.','');
|
|
|
|
|
|
|
|
|
|
$data = my_sort($data, $data_order_type, (int)$data_order);
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
|
|
|
|
|
@ -438,7 +454,7 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$value['cash_count']?:0;
|
|
|
|
|
$value['balance_coin_count']?:0;
|
|
|
|
|
$value['inside_cash_count']?:0;
|
|
|
|
|
$value['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'];
|
|
|
|
|
$value['all_cash_count'] = number_format($value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'],2,'.','');
|
|
|
|
|
$value['company_belong'] =getCompanyBlong($value['company_belong']);
|
|
|
|
|
if(!$value['game_name']) $value['game_name'] = "无";
|
|
|
|
|
}
|
|
|
|
@ -473,7 +489,7 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$sumCash = $totalData['cash_count'];
|
|
|
|
|
$sumBalance = $totalData['balance_coin_count'];
|
|
|
|
|
$sumInside = $totalData['inside_cash_count'];
|
|
|
|
|
$sumAll = $sumCash + $sumBalance + $sumInside;
|
|
|
|
|
$sumAll = number_format($sumCash + $sumBalance + $sumInside,2,'.','');
|
|
|
|
|
|
|
|
|
|
$this->assign('sumCash', $sumCash);
|
|
|
|
|
$this->assign('sumBalance', $sumBalance);
|
|
|
|
@ -717,6 +733,10 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
|
|
|
|
|
foreach($data as $key => $value) {
|
|
|
|
|
$data[$key]['pay_way'] = getPayType($value['pay_way']);
|
|
|
|
|
|
|
|
|
|
$data[$key]['cost'] = number_format($value['cost'],2,'.','');
|
|
|
|
|
$data[$key]['pay_amount'] = number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['export'])) {
|
|
|
|
|