|
|
|
|
@ -141,6 +141,7 @@ public class BuildingServiceImpl implements BuildingService {
|
|
|
|
|
projectNode.setSort(0); |
|
|
|
|
projectNode.setParentId(-1L); |
|
|
|
|
projectNode.setLevel(0); |
|
|
|
|
projectNode.setCommType(0); |
|
|
|
|
projectNode.setChildren(new ArrayList<>()); |
|
|
|
|
|
|
|
|
|
// 判断区域是否有数据
|
|
|
|
|
@ -155,6 +156,7 @@ public class BuildingServiceImpl implements BuildingService {
|
|
|
|
|
buildingNode.setParentId(0L); |
|
|
|
|
buildingNode.setSort(building.getSort()); |
|
|
|
|
buildingNode.setLevel(2); |
|
|
|
|
buildingNode.setCommType(building.getCommType()); |
|
|
|
|
buildingNode.setChildren(null); |
|
|
|
|
return buildingNode; |
|
|
|
|
}) |
|
|
|
|
@ -185,6 +187,7 @@ public class BuildingServiceImpl implements BuildingService {
|
|
|
|
|
buildingNode.setParentId(area.getId()); |
|
|
|
|
buildingNode.setSort(building.getSort()); |
|
|
|
|
buildingNode.setLevel(2); |
|
|
|
|
buildingNode.setCommType(building.getCommType()); |
|
|
|
|
buildingNode.setChildren(null); |
|
|
|
|
return buildingNode; |
|
|
|
|
}) |
|
|
|
|
|