推广平台->数据管理-订单查询|数据管理-充值统计|财务管理-结算明细--新增合计

master
chenxiaojun 5 years ago
parent c5a5bc5c69
commit 1a2bc7b4c5

@ -1746,6 +1746,7 @@ class QueryController extends BaseController
$records = [];
$pagination = '';
$count = 0;
$total = [];
if (intval($endTime - $begTime) / (24 * 3600) <= 31) {
$map['chain'] = ['like', $queryPromote['chain'] . $queryPromote['id'] . '/%'];
$ids = M('promote', 'tab_')->where($map)->getField('id', true);
@ -1834,6 +1835,11 @@ class QueryController extends BaseController
$query = M()->alias('record')
->table($subQuery)
->order($orderBy);
$total = M('user_play_data_count', 'tab_')->alias('uc')
->field($fieldUC)
->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')
->where($map)
->find();
list($records, $pagination, $count) = $this->paginate($query);
@ -1849,6 +1855,7 @@ class QueryController extends BaseController
$this->assign('records', $records);
$this->assign('pagination', $pagination);
$this->assign('count', $count);
$this->assign('total', $total);
$this->assign('initBegTime', $initBegTime);
$this->assign('initEndTime', $initEndTime);
$this->assign('sort', $sort);

Loading…
Cancel
Save