|
|
@ -6456,8 +6456,6 @@ if ($key == 'model'){
|
|
|
|
*充值-》财务管理-》游戏统计-》导出
|
|
|
|
*充值-》财务管理-》游戏统计-》导出
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function exportGameStatistics() {
|
|
|
|
public function exportGameStatistics() {
|
|
|
|
dd($_REQUEST);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$month = I("count_date");
|
|
|
|
$month = I("count_date");
|
|
|
|
$xlsName = $month . '游戏统计导出';
|
|
|
|
$xlsName = $month . '游戏统计导出';
|
|
|
|
|
|
|
|
|
|
|
@ -6496,10 +6494,12 @@ if ($key == 'model'){
|
|
|
|
$data[$key]['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'];
|
|
|
|
$data[$key]['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$sumCash = D("spend_count")->sumSpendCountField($map,"cash_count");
|
|
|
|
$totalData = D("spend")->totalGameStatistics($map);
|
|
|
|
$sumBalance = D("spend_count")->sumSpendCountField($map,"balance_coin_count");
|
|
|
|
|
|
|
|
$sumInside = number_format(array_sum($insideDataSum),2,'.','');
|
|
|
|
$sumCash = $totalData['cash_count'];
|
|
|
|
$sumAll = D("spend_count")->sumSpendCountField($map,"cash_count+balance_coin_count") + array_sum($insideDataSum);
|
|
|
|
$sumBalance = $totalData['balance_coin_count'];
|
|
|
|
|
|
|
|
$sumInside = $totalData['inside_cash_count'];
|
|
|
|
|
|
|
|
$sumAll = $sumCash + $sumBalance + $sumInside;
|
|
|
|
|
|
|
|
|
|
|
|
$sumData = [['game_name'=>'总计',
|
|
|
|
$sumData = [['game_name'=>'总计',
|
|
|
|
'cash_count'=>$sumCash,
|
|
|
|
'cash_count'=>$sumCash,
|
|
|
|