From e977e3a34db9cc319d84145755b7b0f211df8336 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期二, 07 四月 2026 15:19:19 +0800
Subject: [PATCH] feat(production): 添加设备名称字段到工单DTO及映射
---
src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java b/src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java
index cf4e43c..af11ba2 100644
--- a/src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java
+++ b/src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java
@@ -24,6 +24,9 @@
/** 鑺傜偣鍚嶇О */
private String label;
+ /** 鑺傜偣ID */
+ private Long value;
+
/** 鑺傜偣绂佺敤 */
private boolean disabled = false;
@@ -39,6 +42,7 @@
public TreeSelect(SysDept dept)
{
this.id = dept.getDeptId();
+ this.value = dept.getDeptId();
this.label = dept.getDeptName();
this.disabled = StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus());
this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
@@ -90,4 +94,12 @@
{
this.children = children;
}
+
+ public Long getValue() {
+ return value;
+ }
+
+ public void setValue(Long value) {
+ this.value = value;
+ }
}
--
Gitblit v1.9.3