feat: (feature/REQ-2595) 菜单管理编辑角色权限增加角色权限标签

This commit is contained in:
lilong 2024-10-29 16:06:59 +08:00
parent 69da738ffb
commit 05b0590605

View File

@ -1562,9 +1562,11 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
}
Set<Long> newRoleIds = req.stream()
.map(FeatureRoleRelationReq.RelationRoleSettings::getRoleIds)
.map(FeatureRoleRelationReq.RelationRoleSettings::getRoles)
.filter(Objects::nonNull)
.flatMap(Collection::stream)
.map(FeatureRoleRelationReq.Role::getRoleId)
.filter(Objects::nonNull)
.collect(Collectors.toSet());
List<Long> featureIds = req.stream()