提交代码

master
胡锐 7 months ago committed by yuanye
parent 6c288b3c2d
commit 0bdc3fadea
  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) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的角色");
}
// 记录更新时间
secRoleService.editData(secRole);
// 删除角色权限旧数据
secRoleMenuRelService.deleteByRole(roleId);

@ -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<MenuTreeModel> menuTree = secMenuService.queryMenuTree(role.getId());

Loading…
Cancel
Save