From aa77fb78214cc77300402549e5a5fbda5bb4a2c8 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Thu, 9 Jul 2020 15:53:54 +0800 Subject: [PATCH] upt --- .../Admin/Controller/PlatformController.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index 165d5e918..33f198070 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -673,7 +673,7 @@ class PlatformController extends ThinkController // 如果是市场专员那么只能看自己的 $isMarketAdmin = isMarketAdmin(); if ($isMarketAdmin) { - $_REQUEST['admin_user_id'] = $map['tp2.admin_id'] = is_login(); + $statisticsMap['tab_promote.admin_id'] = $_REQUEST['admin_user_id'] = $map['tp2.admin_id'] = is_login(); } if (isset($_REQUEST['server_id'])||isset($_REQUEST['game_name'])||isset($_REQUEST['promote_id'])||isset($_REQUEST['admin_id'])||isset($_REQUEST['admin_user_id'])) { @@ -689,7 +689,13 @@ class PlatformController extends ThinkController ->select(); } else { $statisticsMap['time'] =$map['pay_time']; - $data = M('promote_statistics', 'tab_')->field("promote_account,promote_id as id,sum(count) count")->where($statisticsMap)->group("promote_id")->select(); + setPowerPromoteIds($statisticsMap, 'tab_promote.id'); + $data = M('promote_statistics', 'tab_') + ->field("promote_account,promote_id as id,sum(count) count") + ->join('tab_promote on tab_promote.id = tab_promote_statistics.promote_id', 'left') + ->where($statisticsMap) + ->group("promote_id") + ->select(); }