Commit f145eedc authored by 孙磊's avatar 孙磊

branch常量

Signed-off-by: 孙磊's avatarsunlei <sunlei@romens.cn>
parent 99533e71
......@@ -63,10 +63,10 @@ class BranchController extends BaseController
// print_r($userinfo);die();
$where_branch = '';
//是否是 分公司管理员 是的话只显示所管理门店的数据
if($userinfo['ROLE_ID']=='2'){
if($userinfo['ROLE_ID'] == USER_ROLE_REGION_ADMIN){
$branchguids_str = $userinfo['BRANCH_GUID'];
$where_branch = empty($branchguids_str)?$userinfo['SUPPROVINCE_GUID']:"'".$userinfo['SUPPROVINCE_GUID']."',".$branchguids_str;
}elseif($userinfo['ROLE_ID']=='3' ){
}elseif($userinfo['ROLE_ID'] == USER_ROLE_STORE_ADMIN){
//门店
$branchguid = $userinfo['BRANCH_GUID'];
$where_branch = !empty($branchguid) ? $branchguid :'';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment