fix(权限点): 兼容path父级不存在
This commit is contained in:
parent
2542153b2c
commit
d928f54d8b
@ -286,7 +286,10 @@ public class PermissionPointServiceImpl implements PermissionPointService {
|
|||||||
.collect(Collectors.toMap(SaasFeature::getId, Function.identity()));
|
.collect(Collectors.toMap(SaasFeature::getId, Function.identity()));
|
||||||
//填充层级父级名称 直接父级信息
|
//填充层级父级名称 直接父级信息
|
||||||
for (Long parentId : ids) {
|
for (Long parentId : ids) {
|
||||||
pathName.add(parentsMapping.get(parentId).getFeatureName());
|
SaasFeature saasFeature = parentsMapping.get(parentId);
|
||||||
|
if (saasFeature != null) {
|
||||||
|
pathName.add(saasFeature.getFeatureName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
vo.setPathName(pathName);
|
vo.setPathName(pathName);
|
||||||
SaasFeature parent = parentsMapping.get(vo.getParentId());
|
SaasFeature parent = parentsMapping.get(vo.getParentId());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user