|
|
@ -1154,34 +1154,37 @@ class QueryController extends BaseController
|
|
|
|
->select());//创角用户
|
|
|
|
->select());//创角用户
|
|
|
|
|
|
|
|
|
|
|
|
$newUserNumData = $userPlayInfoModel
|
|
|
|
$newUserNumData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.user_id) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->join($join)
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->group('tab_user_play_info.user_id')
|
|
|
|
|
|
|
|
->having('tab_user_play_info.create_time between ' . $thisDateTime . ' and ' . ($thisDateTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_user_num'] = empty($newUserNumData['num']) ? 0 : $newUserNumData['num'];//新创角用户
|
|
|
|
$list['new_user_num'] = count($newUserNumData);//新创角用户
|
|
|
|
|
|
|
|
|
|
|
|
$newDeviceData = $userPlayInfoModel
|
|
|
|
$newDeviceData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.create_device_number) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->join($join)
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->group('tab_user_play_info.create_device_number')
|
|
|
|
|
|
|
|
->having('tab_user_play_info.create_time between ' . $thisDateTime . ' and ' . ($thisDateTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_device_num'] = empty($newDeviceData['num']) ? 0 : $newDeviceData['num'];//新创角设备
|
|
|
|
$list['new_device_num'] = count($newDeviceData);//新创角设备
|
|
|
|
|
|
|
|
|
|
|
|
$newIpNumData = $userPlayInfoModel
|
|
|
|
$newIpNumData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.create_ip) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->join($join)
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->group('tab_user_play_info.create_ip')
|
|
|
|
|
|
|
|
->having('tab_user_play_info.create_time between ' . $thisDateTime . ' and ' . ($thisDateTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_ip_num'] = empty($newIpNumData['num']) ? 0 : $newIpNumData['num'];//新增创角IP
|
|
|
|
$list['new_ip_num'] = count($newIpNumData);//新增创角IP
|
|
|
|
|
|
|
|
|
|
|
|
$list['login_user_num'] = count(M('UserGameLoginRecord', 'tab_')
|
|
|
|
$list['login_user_num'] = count(M('UserGameLoginRecord', 'tab_')
|
|
|
|
->join($join)
|
|
|
|
->join($join)
|
|
|
@ -1451,28 +1454,31 @@ class QueryController extends BaseController
|
|
|
|
->count('distinct tab_user_play_info.user_id');//创角用户
|
|
|
|
->count('distinct tab_user_play_info.user_id');//创角用户
|
|
|
|
|
|
|
|
|
|
|
|
$newUserNumData = $userPlayInfoModel
|
|
|
|
$newUserNumData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.user_id) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
|
|
|
|
->group('tab_user_play_info.user_id')
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_user_num'] = empty($newUserNumData['num']) ? 0 : $newUserNumData['num'];//新创角用户
|
|
|
|
$list['new_user_num'] = count($newUserNumData);//新创角用户
|
|
|
|
|
|
|
|
|
|
|
|
$newDeviceData = $userPlayInfoModel
|
|
|
|
$newDeviceData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.create_device_number) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
|
|
|
|
->group('tab_user_play_info.create_device_number')
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_device_num'] = empty($newDeviceData['num']) ? 0 : $newDeviceData['num'];//新创角设备
|
|
|
|
$list['new_device_num'] = count($newDeviceData);//新创角设备
|
|
|
|
|
|
|
|
|
|
|
|
$newIpData = $userPlayInfoModel
|
|
|
|
$newIpData = $userPlayInfoModel
|
|
|
|
->field('tab_user_play_info.create_time,count(distinct tab_user_play_info.create_ip) as num')
|
|
|
|
->field('tab_user_play_info.create_time')
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
->where($userPlayInfoMap2)
|
|
|
|
|
|
|
|
->group('tab_user_play_info.create_ip')
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->having('tab_user_play_info.create_time between ' . $begTime . ' and ' . ($endTime + 86399))
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->order('tab_user_play_info.id')
|
|
|
|
->find();
|
|
|
|
->select();
|
|
|
|
$list['new_ip_num'] = empty($newIpData['num']) ? 0 : $newIpData['num'];//新增创角IP
|
|
|
|
$list['new_ip_num'] = count($newIpData);//新增创角IP
|
|
|
|
|
|
|
|
|
|
|
|
$list['login_user_num'] = $userGameLoginModel
|
|
|
|
$list['login_user_num'] = $userGameLoginModel
|
|
|
|
->where($userGameLoginMap)
|
|
|
|
->where($userGameLoginMap)
|
|
|
|