From 7c3eef26f06c9af9153164e75128119b0dbbce67 Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 1 Jul 2025 14:06:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(TreeSelects):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=83=BD=E6=BA=90=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 TreeSelects 类中添加 type 字段,用于存储能源类型 - 在构造函数中初始化 type 字段 - 添加 getType 和 setType 方法以获取和设置能源类型 --- .../main/java/com/os/ems/base/domain/TreeSelects.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } }