推广平台>数据管理>充值玩家--更新

master
chenxiaojun 5 years ago
parent a19a7b530e
commit 60fff33fca

@ -1114,6 +1114,7 @@ class QueryController extends BaseController
$summaryData = []; $summaryData = [];
$dayList = $this->getDayList($begTime, $endTime); $dayList = $this->getDayList($begTime, $endTime);
$dayListReverse = $dayList;
$dayList = array_reverse($dayList); $dayList = array_reverse($dayList);
$params['dayList'] = $dayList; $params['dayList'] = $dayList;
@ -1185,7 +1186,9 @@ class QueryController extends BaseController
$allData['spend_binding'] = bcadd($allData['spend_binding'], $spendBindingList[$day], 2); $allData['spend_binding'] = bcadd($allData['spend_binding'], $spendBindingList[$day], 2);
$allData['spend_discount'] = bcadd($allData['spend_discount'], 0, 2); $allData['spend_discount'] = bcadd($allData['spend_discount'], 0, 2);
$allData['spend_voucher'] = bcadd($allData['spend_voucher'], 0, 2); $allData['spend_voucher'] = bcadd($allData['spend_voucher'], 0, 2);
}
foreach ($dayListReverse as $day) {
$date = date('Ymd', strtotime($day));
$summaryData['date'][] = $date; $summaryData['date'][] = $date;
$summaryData['role_num'][] = $roleNumList[$day]; $summaryData['role_num'][] = $roleNumList[$day];
$summaryData['user_num'][] = $userNumList[$day]; $summaryData['user_num'][] = $userNumList[$day];
@ -1865,10 +1868,15 @@ class QueryController extends BaseController
list($records, $pagination, $count) = $this->paginate($query); list($records, $pagination, $count) = $this->paginate($query);
$total = M('user_play_data_count', 'tab_')->alias('uc') $totalQuery = M('user_play_data_count', 'tab_')->alias('uc')
->field($fieldUC) ->field($fieldUC)
->join('left join tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id') ->join('left join tab_user_play_info as ui on ui.user_id = uc.user_id and ui.game_id = uc.game_id and uc.server_id = ui.server_id and ui.role_id = uc.role_id')
->group('uc.role_id,uc.game_id,uc.server_id,uc.user_id')
->where($map) ->where($map)
->buildSql();
$total = M()->alias('totals')
->table($totalQuery)
->field('sum(recharge_cost) recharge_cost,sum(recharge_count) recharge_count,sum(recharge_cost_today) as recharge_cost_today')
->find(); ->find();
foreach ($records as &$list) { foreach ($records as &$list) {

Loading…
Cancel
Save