mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 运营商仅可查看本运营商下所有站点订单信息
This commit is contained in:
@@ -126,6 +126,8 @@ public class SecurityUtils {
|
||||
log.info("用户id:{}, 获取不到所属部门信息", user.getUserId());
|
||||
return null;
|
||||
}
|
||||
String deptId = String.valueOf(dept.getDeptId());
|
||||
resultVO.setDeptId(deptId);
|
||||
log.info("用户id:{}, 所属部门信息:{}", user.getUserId(), JSONObject.toJSONString(dept));
|
||||
// 登录用户角色
|
||||
List<SysRole> roles = user.getRoles();
|
||||
@@ -136,11 +138,11 @@ public class SecurityUtils {
|
||||
// 父级id是0,表明是该账号挂在平台下面,是系统管理员
|
||||
} else if (parentId == 100L) {
|
||||
// 父级id是100,表明是该账号挂在运营商下面,是运营商管理员
|
||||
merchantDeptIds.add(String.valueOf(dept.getDeptId()));
|
||||
merchantDeptIds.add(deptId);
|
||||
resultVO.setMerchantDeptIds(merchantDeptIds);
|
||||
} else {
|
||||
// 其他情况,表明是站点管理员
|
||||
stationDeptIds.add(String.valueOf(dept.getDeptId()));
|
||||
stationDeptIds.add(deptId);
|
||||
resultVO.setStationDeptIds(stationDeptIds);
|
||||
}
|
||||
return resultVO;
|
||||
|
||||
Reference in New Issue
Block a user