Commit 8b445b48 authored by zhangsen's avatar zhangsen

bug修改

parent 39b6be8f
......@@ -556,7 +556,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
private List<BuildingTreeVo> getChildren(Long parentId, List<BuildingTreeVo> allListVo) {
List<BuildingTreeVo> children = new ArrayList<>();
allListVo.stream().filter(a -> a.getParentId().equals(String.valueOf(parentId))).forEach(s -> {
allListVo.stream().filter(a -> !ObjectUtils.isEmpty(a.getParentId()) && a.getParentId().equals(String.valueOf(parentId))).forEach(s -> {
s.setChildren(this.getChildren(s.getInstanceId(), allListVo));
s.setDetailPaneApi(address);
s.setApiUrl(apiUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment