|
|
|
@ -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);
|
|
|
|
|