Commit fe037c82 authored by 赵啸非's avatar 赵啸非

添加应用分类列表

parent df72b110
...@@ -114,13 +114,15 @@ public class SiteTreeSelect implements Serializable { ...@@ -114,13 +114,15 @@ public class SiteTreeSelect implements Serializable {
this.type = "site"; this.type = "site";
this.icon = "el-icon-wind-power"; this.icon = "el-icon-wind-power";
this.detailAddress=collect.stream().map(item -> item.getDetailAddress()).collect(Collectors.joining(",")); this.detailAddress=collect.stream().map(item -> item.getDetailAddress()).collect(Collectors.joining(","));
this.longitude = collect.stream().findFirst().map(item -> item.getLongitude()).orElseGet(() -> ""); this.areaCode=collect.stream().map(item -> item.getAreaCode()).collect(Collectors.joining(","));
this.latitude = collect.stream().findFirst().map(item -> item.getLatitude()).orElseGet(() -> ""); this.longitude = collect.stream().map(item -> item.getLongitude()).collect(Collectors.joining(","));
this.latitude = collect.stream().map(item -> item.getLatitude()).collect(Collectors.joining(","));
} else { } else {
this.id = entity.getIid(); this.id = entity.getIid();
this.label = entity.getName(); this.label = entity.getName();
this.type = "area"; this.type = "area";
this.icon = "el-icon-place"; this.icon = "el-icon-place";
this.areaCode=entity.getAreaCode();
} }
this.level=entity.getAreaLevel(); this.level=entity.getAreaLevel();
if ("False".equalsIgnoreCase(entity.getHaveSonArea())) { if ("False".equalsIgnoreCase(entity.getHaveSonArea())) {
......
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