From 270e24346d202c0cafb8217c6f2d9ef65a909cb9 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 19 Nov 2019 20:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repository/PromoteRepository.class.php | 2 +- .../Home/Controller/QueryController.class.php | 25 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/Application/Base/Repository/PromoteRepository.class.php b/Application/Base/Repository/PromoteRepository.class.php index 1dfe66833..8fa9f8db7 100644 --- a/Application/Base/Repository/PromoteRepository.class.php +++ b/Application/Base/Repository/PromoteRepository.class.php @@ -223,7 +223,7 @@ class PromoteRepository { if (isset($params['begin_time']) && isset($params['begin_time'])) { $subMap['create_time'] = ['lt', $params['begin_time']]; } - + $subQuery = M('user_play_info', 'tab_')->field('user_id')->group('user_id')->where($subMap)->buildSql(); if (isset($map['_string'])) { $map['_string'] .= ' and user_id not in (' . $subQuery . ')'; diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index b66b62c7c..82dbdd106 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1991,40 +1991,15 @@ class QueryController extends BaseController $records = []; if (intval($endTime - $beginTime) / (24 * 3600) <= 7) { $promoteRepository = new PromoteRepository(); - $time1 = microtime(true); $createRoleCountList = $promoteRepository->getCreateRoleCountByIds($ids, $params); - $time2 = microtime(true); - echo $time2 - $time1; - echo "
"; $createRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds($ids, $params); - $time3 = microtime(true); - echo $time3 - $time2; - echo "
"; $newCreateRoleUserCountList = $promoteRepository->getNewCreateRoleUserCountByIds($ids, $params); - $time4 = microtime(true); - echo $time4 - $time3; - echo "
"; // $newCreateRoleDeviceCountList = $promoteRepository->getNewCreateRoleDeviceCountByIds($ids, $params); $newCreateRoleIpCountList = $promoteRepository->getNewCreateRoleIpCountByIds($ids, $params); - $time5 = microtime(true); - echo $time5 - $time4; - echo "
"; $loginUserCountList = $promoteRepository->getLoginUserCountByIds($ids, $params); - $time6 = microtime(true); - echo $time6 - $time5; - echo "
"; $rechargeCountList = $promoteRepository->getRechargeCountByIds($ids, $params); - $time7 = microtime(true); - echo $time7 - $time6; - echo "
"; $rechargeUserCountList = $promoteRepository->getRechargeUserCountByIds($ids, $params); - $time8 = microtime(true); - echo $time8 - $time7; - echo "
"; $rechargeAmountList = $promoteRepository->getRechargeAmountByIds($ids, $params); - $time9 = microtime(true); - echo $time9 - $time8; - echo "
"; if (I('p', 1) == 1) { $selfParams = $params;