市场专员业绩管理权限判断

master
zhengyongxing 4 years ago
parent 80dc2b860c
commit 70d6c3c7bf

@ -338,14 +338,17 @@ class MarketPercentageController extends ThinkController
$map = []; $map = [];
// $map['group_id'] = ['in','11,12,21']; $map['group_id'] = ['in','11,12,21'];
$_REQUEST['pay_time']?($map['pay_time'] = $_REQUEST['pay_time']):''; $_REQUEST['pay_time']?($map['pay_time'] = $_REQUEST['pay_time']):'';
$_REQUEST['admin_id']?($map['admin_id'] = $_REQUEST['admin_id']):''; $_REQUEST['admin_id']?($map['admin_id'] = $_REQUEST['admin_id']):'';
$_REQUEST['group_id']?($map['group_id'] = $_REQUEST['group_id']):''; $_REQUEST['group_id']?($map['group_id'] = $_REQUEST['group_id']):'';
$admin_id = $_SESSION['onethink_admin']['user_auth']['uid']; $admin_id = $_SESSION['onethink_admin']['user_auth']['uid'];
// $map['admin_id'] = $admin_id; $map['admin_id'] = $admin_id;
if(is_administrator()) {
unset($map['admin_id']);
}
$data = M("settleup_marketorder","tab_") $data = M("settleup_marketorder","tab_")
->field("tab_settleup_marketorder.id,pay_time,promote_account,company_belong,member.real_name,develop_type,game_name, ->field("tab_settleup_marketorder.id,pay_time,promote_account,company_belong,member.real_name,develop_type,game_name,

Loading…
Cancel
Save