diff --git a/service/src/main/java/com/hfkj/service/impl/SecMenuServiceImpl.java b/service/src/main/java/com/hfkj/service/impl/SecMenuServiceImpl.java index e2a46e3..0a13f29 100644 --- a/service/src/main/java/com/hfkj/service/impl/SecMenuServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/impl/SecMenuServiceImpl.java @@ -166,6 +166,9 @@ public class SecMenuServiceImpl implements SecMenuService { if (secRole == null) { throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的角色"); } + // 记录更新时间 + secRoleService.editData(secRole); + // 删除角色权限旧数据 secRoleMenuRelService.deleteByRole(roleId); diff --git a/service/src/main/java/com/hfkj/service/impl/SecUserServiceImpl.java b/service/src/main/java/com/hfkj/service/impl/SecUserServiceImpl.java index ab25176..af841cf 100644 --- a/service/src/main/java/com/hfkj/service/impl/SecUserServiceImpl.java +++ b/service/src/main/java/com/hfkj/service/impl/SecUserServiceImpl.java @@ -140,7 +140,7 @@ public class SecUserServiceImpl implements SecUserService { // 查询账户角色 SecRole role = secRoleService.getDetail(user.getRoleId()); if (role == null) { - throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在"); + throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录账户角色不存在,请联系管理员进行分配"); } // 角色菜单 List menuTree = secMenuService.queryMenuTree(role.getId());