feat:(REQ-2227) 修改角色创建时pids的解析逻辑
This commit is contained in:
parent
0a5c2653e9
commit
5fa71feafe
@ -358,7 +358,7 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
|
||||
|| CollectionUtils.isNotEmpty(saveOrUpdateRole.getPermissionIds())) {
|
||||
|
||||
List<Long> pids = Optional.ofNullable(saveOrUpdateRole.getSelectedPPIds())
|
||||
.orElse(Lists.newArrayList(saveOrUpdateRole.getPermissionIds()));
|
||||
.orElseGet(() -> Lists.newArrayList(saveOrUpdateRole.getPermissionIds()));
|
||||
|
||||
// 保存权限集和权限点映射关系
|
||||
List<SaasPgroupPermissionRelation> pgpRelations = pids.stream().map(ppId -> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user