feat(TreeSelects): 增加能源类型字段

- 在 TreeSelects 类中添加 type 字段,用于存储能源类型
- 在构造函数中初始化 type 字段
- 添加 getType 和 setType 方法以获取和设置能源类型
boardTest
zch 4 weeks ago
parent c37ef20af2
commit 7c3eef26f0

@ -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;
}
}

Loading…
Cancel
Save