|
|
@ -140,7 +140,7 @@ public class SecUserServiceImpl implements SecUserService { |
|
|
|
// 查询账户角色
|
|
|
|
// 查询账户角色
|
|
|
|
SecRole role = secRoleService.getDetail(user.getRoleId()); |
|
|
|
SecRole role = secRoleService.getDetail(user.getRoleId()); |
|
|
|
if (role == null) { |
|
|
|
if (role == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在,请联系管理员进行分配"); |
|
|
|
} |
|
|
|
} |
|
|
|
// 角色菜单
|
|
|
|
// 角色菜单
|
|
|
|
List<MenuTreeModel> menuTree = secMenuService.queryMenuTree(role.getId()); |
|
|
|
List<MenuTreeModel> menuTree = secMenuService.queryMenuTree(role.getId()); |
|
|
|