diff --git a/os-ems/src/main/java/com/os/ems/base/domain/TreeSelects.java b/os-ems/src/main/java/com/os/ems/base/domain/TreeSelects.java index fd2aa4b..2c8fc3a 100644 --- a/os-ems/src/main/java/com/os/ems/base/domain/TreeSelects.java +++ b/os-ems/src/main/java/com/os/ems/base/domain/TreeSelects.java @@ -23,6 +23,8 @@ public class TreeSelects implements Serializable /** 节点名称 */ private String label; + private Long type; + private String code; /** 子节点 */ @@ -45,6 +47,7 @@ public class TreeSelects implements Serializable this.id = baseMonitorInfo.getObjId(); this.label = baseMonitorInfo.getMonitorName(); this.code = baseMonitorInfo.getMonitorCode(); + this.type = baseMonitorInfo.getMonitorType();//能源类型 this.children = baseMonitorInfo.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList()); } @@ -99,4 +102,12 @@ public class TreeSelects implements Serializable { this.children = children; } + + public Long getType() { + return type; + } + + public void setType(Long type) { + this.type = type; + } }