mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-14 23:08:35 +08:00
update 修改判断逻辑
This commit is contained in:
@@ -135,10 +135,27 @@ public class SecurityUtils {
|
|||||||
resultVO.setParentId(String.valueOf(parentId));
|
resultVO.setParentId(String.valueOf(parentId));
|
||||||
List<String> merchantDeptIds = Lists.newArrayList();
|
List<String> merchantDeptIds = Lists.newArrayList();
|
||||||
List<String> stationDeptIds = Lists.newArrayList();
|
List<String> stationDeptIds = Lists.newArrayList();
|
||||||
if (parentId == 0L) {
|
// if (parentId == 0L) {
|
||||||
// 父级id是0,表明是该账号挂在平台下面,是系统管理员
|
// // 父级id是0,表明是该账号挂在平台下面,是系统管理员
|
||||||
} else if (parentId == 100L) {
|
// } else if (parentId == 100L) {
|
||||||
// 父级id是100,表明是该账号挂在运营商下面,是运营商管理员
|
// // 父级id是100,表明是该账号挂在运营商下面,是运营商管理员
|
||||||
|
// merchantDeptIds.add(deptId);
|
||||||
|
// resultVO.setMerchantDeptIds(merchantDeptIds);
|
||||||
|
// } else {
|
||||||
|
// // 其他情况,表明是站点管理员
|
||||||
|
// stationDeptIds.add(deptId);
|
||||||
|
// resultVO.setStationDeptIds(stationDeptIds);
|
||||||
|
// }
|
||||||
|
|
||||||
|
String deptLevel = dept.getDeptLevel();
|
||||||
|
if (StringUtils.equals(deptLevel, "0")) {
|
||||||
|
// 表明是该账号挂在平台下面,是系统管理员
|
||||||
|
} else if (StringUtils.equals(deptLevel, "1")) {
|
||||||
|
// 表明是该账号挂在运营商下面,是一级运营商管理员
|
||||||
|
merchantDeptIds.add(deptId);
|
||||||
|
resultVO.setMerchantDeptIds(merchantDeptIds);
|
||||||
|
} else if (StringUtils.equals(deptLevel, "2")) {
|
||||||
|
// 表明是该账号挂在运营商下面,是二级运营商管理员
|
||||||
merchantDeptIds.add(deptId);
|
merchantDeptIds.add(deptId);
|
||||||
resultVO.setMerchantDeptIds(merchantDeptIds);
|
resultVO.setMerchantDeptIds(merchantDeptIds);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user