From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 18 九月 2024 09:39:02 +0800 Subject: [PATCH] 代码提交 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java index bd835db..a82dcb7 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java @@ -9,7 +9,7 @@ /** * Treeselect鏍戠粨鏋勫疄浣撶被 - * + * * @author ruoyi */ public class TreeSelect implements Serializable @@ -21,6 +21,9 @@ /** 鑺傜偣鍚嶇О */ private String label; + + /** 鑺傜偣鍚嶇О */ + private String deptCode; /** 瀛愯妭鐐� */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @@ -35,6 +38,7 @@ { this.id = dept.getDeptId(); this.label = dept.getDeptName(); + this.deptCode = dept.getDeptCode(); this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); } @@ -45,6 +49,14 @@ this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); } + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode; + } + public Long getId() { return id; -- Gitblit v1.9.3