|
|
@@ -175,8 +175,8 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IR |
|
|
|
} |
|
|
|
|
|
|
|
private void saveRoleMenu(List<Long> menuIds, Long roleId) { |
|
|
|
roleMenuService.remove(Wrappers.lambdaQuery(RoleMenu.class).eq(RoleMenu::getRoleId, roleId)); |
|
|
|
if (CollUtil.isNotEmpty(menuIds)) { |
|
|
|
roleMenuService.remove(Wrappers.lambdaQuery(RoleMenu.class).eq(RoleMenu::getRoleId, roleId)); |
|
|
|
Set<RoleMenu> toAddMenus = new HashSet<>(); |
|
|
|
for (Long menuId : menuIds) { |
|
|
|
Menu menu = menuService.getById(menuId); |
|
|
|