提交代码

master
胡锐 7 months ago
parent a6d7dc8ffd
commit 703fc8ca5c
  1. 3
      service/src/main/java/com/hfkj/service/impl/SecMenuServiceImpl.java
  2. 2
      service/src/main/java/com/hfkj/service/impl/SecUserServiceImpl.java

@ -166,6 +166,9 @@ public class SecMenuServiceImpl implements SecMenuService {
if (secRole == null) { if (secRole == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的角色"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的角色");
} }
// 记录更新时间
secRoleService.editData(secRole);
// 删除角色权限旧数据 // 删除角色权限旧数据
secRoleMenuRelService.deleteByRole(roleId); secRoleMenuRelService.deleteByRole(roleId);

@ -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());

Loading…
Cancel
Save