优化
This commit is contained in:
parent
4a03235fe1
commit
513367710d
@ -234,14 +234,14 @@ public class SystemUserAuthController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
String userId = decrypt.getString("uid");
|
String userId = decrypt.getString("uid");
|
||||||
String account = "";
|
String account = userId;
|
||||||
if (userId.equals("myy")) {
|
// if (userId.equals("myy")) {
|
||||||
account = "hzxmgl";
|
// account = "hzxmgl";
|
||||||
} else if (userId.equals("test")) {
|
// } else if (userId.equals("test")) {
|
||||||
account = "hzxm";
|
// account = "hzxm";
|
||||||
} else {
|
// } else {
|
||||||
account = userId;
|
// account = userId;
|
||||||
}
|
// }
|
||||||
SystemUser user = systemUserService.getOne(Wrappers.<SystemUser>lambdaQuery()
|
SystemUser user = systemUserService.getOne(Wrappers.<SystemUser>lambdaQuery()
|
||||||
.eq(SystemUser::getAccount, account));
|
.eq(SystemUser::getAccount, account));
|
||||||
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
SystemUserAuthDto userInfo = new SystemUserAuthDto();
|
||||||
|
|||||||
@ -154,18 +154,18 @@ public class BaseMenuServiceImpl extends ServiceImpl<BaseMenuMapper, BaseMenu> i
|
|||||||
public List<MenuHzDto> getAllForHz(Map<String, Object> map) {
|
public List<MenuHzDto> getAllForHz(Map<String, Object> map) {
|
||||||
String userId = MapUtils.getString(map, "userId");
|
String userId = MapUtils.getString(map, "userId");
|
||||||
userId = Aes.decrypt(userId, "ssologin66!@#$%^");
|
userId = Aes.decrypt(userId, "ssologin66!@#$%^");
|
||||||
SystemUser systemUser = new SystemUser();
|
|
||||||
Long moduleId = 0L;
|
Long moduleId = 0L;
|
||||||
if (userId.equals("myy")) {
|
SystemUser systemUser = systemUserMapper.selectOne(Wrappers.<SystemUser>lambdaQuery().eq(SystemUser::getAccount, userId));
|
||||||
systemUser = systemUserMapper.selectOne(Wrappers.<SystemUser>lambdaQuery().eq(SystemUser::getAccount, "hzxmgl"));
|
|
||||||
moduleId = 1670639811581595650L;
|
|
||||||
} else {
|
|
||||||
systemUser = systemUserMapper.selectOne(Wrappers.<SystemUser>lambdaQuery().eq(SystemUser::getAccount, userId));
|
|
||||||
moduleId = 1681837103227502594L;
|
|
||||||
}
|
|
||||||
if (systemUser == null) {
|
if (systemUser == null) {
|
||||||
throw new CustomException("用户不存在");
|
throw new CustomException("用户不存在");
|
||||||
}
|
}
|
||||||
|
if (systemUser.getAccountType() == 2) {
|
||||||
|
moduleId = 1670639811581595650L;
|
||||||
|
} else if (systemUser.getAccountType() == 3) {
|
||||||
|
moduleId = 1681837103227502594L;
|
||||||
|
} else {
|
||||||
|
moduleId = 1670603312504918018L;
|
||||||
|
}
|
||||||
List<BaseMenu> baseMenus = new ArrayList<>();
|
List<BaseMenu> baseMenus = new ArrayList<>();
|
||||||
if (systemUser.getIsManager() && systemUser.getAccountType() != 3) {
|
if (systemUser.getIsManager() && systemUser.getAccountType() != 3) {
|
||||||
// 查询相对应的菜单
|
// 查询相对应的菜单
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user