|
|
|
@ -1167,10 +1167,9 @@ class PlatformController extends ThinkController
|
|
|
|
|
$map['s.market_admin_id'] = is_login();
|
|
|
|
|
} else if (!empty($_REQUEST['admin_id'])) {
|
|
|
|
|
$map['s.market_admin_id'] = $_REQUEST['admin_id'];
|
|
|
|
|
} else {
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map, 'tp1.id');
|
|
|
|
|
}
|
|
|
|
|
setPowerPromoteIds($map, 'tp1.id');
|
|
|
|
|
|
|
|
|
|
D("Spend")->addSubsiteWhere($map,"s");
|
|
|
|
|
|
|
|
|
|
$data = SM('promote', 'tab_')->alias('tp1')
|
|
|
|
@ -1184,6 +1183,7 @@ class PlatformController extends ThinkController
|
|
|
|
|
->order('count desc')
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//今日/本周/本月不变
|
|
|
|
|
$tmap = $map;
|
|
|
|
|
if(isset($map['pay_time'])){
|
|
|
|
|