master
yulingwei 4 years ago
parent 51a1c9c707
commit aa77fb7821

@ -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();
}

Loading…
Cancel
Save