bugfix
This commit is contained in:
parent
3427838bb6
commit
dbd798f89e
@ -239,7 +239,7 @@ public class SaasFeatureApplyServiceImpl implements SaasFeatureApplyService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
Set<Long> featureIds = details.stream().filter(s -> StringUtils.isNotBlank(s.getFeaturePath()))
|
Set<Long> featureIds = details.stream().filter(s -> StringUtils.isNotBlank(s.getFeaturePath()))
|
||||||
.flatMap(l -> Arrays.stream(l.getFeaturePath().split("/"))).filter(StringUtils::isNotBlank)
|
.flatMap(l -> Arrays.stream(l.getFeaturePath().split("/"))).filter(e -> StringUtils.isNotBlank(e) || StringUtils.equals("0", e))
|
||||||
.map(Long::parseLong).collect(Collectors.toSet());
|
.map(Long::parseLong).collect(Collectors.toSet());
|
||||||
List<PermissionPointApplyVO.PermissionPointInfoVO> root;
|
List<PermissionPointApplyVO.PermissionPointInfoVO> root;
|
||||||
if (CollectionUtils.isNotEmpty(featureIds)) {
|
if (CollectionUtils.isNotEmpty(featureIds)) {
|
||||||
@ -379,7 +379,11 @@ public class SaasFeatureApplyServiceImpl implements SaasFeatureApplyService {
|
|||||||
featurePath = "";
|
featurePath = "";
|
||||||
parentBusinessCode = "";
|
parentBusinessCode = "";
|
||||||
} else {
|
} else {
|
||||||
featurePath = "/" + parent.getPermissionPointId() + "/";
|
if (StringUtils.isNotBlank(parent.getPath())) {
|
||||||
|
featurePath = parent.getPath() + parent.getPermissionPointId() + "/";
|
||||||
|
} else {
|
||||||
|
featurePath = "/" + parent.getPermissionPointId() + "/";
|
||||||
|
}
|
||||||
parentBusinessCode = parent.getBusinessNo();
|
parentBusinessCode = parent.getBusinessNo();
|
||||||
}
|
}
|
||||||
pp.getChildren()
|
pp.getChildren()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user