|
|
@ -1155,7 +1155,9 @@ class QueryController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$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,count(distinct tab_user_play_info.user_id) as num')
|
|
|
|
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
|
|
|
|
->where($map)
|
|
|
|
->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();
|
|
|
|
->find();
|
|
|
@ -1163,7 +1165,9 @@ class QueryController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$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,count(distinct tab_user_play_info.create_device_number) as num')
|
|
|
|
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
|
|
|
|
->where($map)
|
|
|
|
->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();
|
|
|
|
->find();
|
|
|
@ -1171,7 +1175,9 @@ class QueryController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$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,count(distinct tab_user_play_info.create_ip) as num')
|
|
|
|
|
|
|
|
->join($join)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
->where($userPlayInfoWhere2)
|
|
|
|
|
|
|
|
->where($map)
|
|
|
|
->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();
|
|
|
|
->find();
|
|
|
|