Skip to content

Commit

Permalink
修复修改角色字典权限无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Nov 15, 2023
1 parent a32b321 commit 2bba698
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ public int insertRole(SysRole role) {
public int updateRoleByRoleId(SysRole role) {
var roleId = role.getRoleId();
var menuIds = role.getMenuIds();
var dictIds = role.getDictIds();
menuMapper.deleteRoleMenuByRoleId(roleId);
if (!menuIds.isEmpty()) {
menuMapper.insertRoleMenu(roleId, menuIds);
}
if (!dictIds.isEmpty()) {
dictTypeMapper.insertRoleDict(role.getRoleId(), dictIds);
}
return roleMapper.updateRoleByRoleId(role);
}

Expand Down

0 comments on commit 2bba698

Please sign in to comment.