|
|
|
@ -1769,9 +1769,10 @@ class QueryController extends BaseController
|
|
|
|
|
$map['promote_id'] = $queryPromote['id'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$roleIds = M('user_play_data_count', 'tab_')->group('role_id')->getField('role_id', true);
|
|
|
|
|
$map['role_id'] = ['in', $roleIds];
|
|
|
|
|
$subMap['create_time'] = ['between', [$begTime, $endTime - 1]];
|
|
|
|
|
$roleIdMap = $subMap;
|
|
|
|
|
$roleIds = M('user_play_data_count', 'tab_')->where($roleIdMap)->group('role_id')->getField('role_id', true);
|
|
|
|
|
$map['role_id'] = ['in', $roleIds];
|
|
|
|
|
if ($costBegin != '' || $costEnd != '') {
|
|
|
|
|
$having = '';
|
|
|
|
|
if ($costBegin != '' && $costEnd != '') {
|
|
|
|
|