From 76d497aebf82eaefb0c5b46e2dfff1e4a4d0e066 Mon Sep 17 00:00:00 2001 From: syruan <321359594@qq.com> Date: Mon, 19 Aug 2024 11:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=A0=91=E6=9E=84=E9=80=A0=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=B7=BB=E5=8A=A0=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/base/api/domain/TreeSelect.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bonus-api/bonus-api-system/src/main/java/com/bonus/base/api/domain/TreeSelect.java b/bonus-api/bonus-api-system/src/main/java/com/bonus/base/api/domain/TreeSelect.java index ef9302b..76640fb 100644 --- a/bonus-api/bonus-api-system/src/main/java/com/bonus/base/api/domain/TreeSelect.java +++ b/bonus-api/bonus-api-system/src/main/java/com/bonus/base/api/domain/TreeSelect.java @@ -20,7 +20,7 @@ public class TreeSelect implements Serializable private static final long serialVersionUID = 1L; /** 节点ID */ - private String id; + private Integer id; /** 节点名称 */ private String label; @@ -32,7 +32,7 @@ public class TreeSelect implements Serializable */ private String code; - private String parentId; + private Integer parentId; private String companyId; @@ -43,17 +43,17 @@ public class TreeSelect implements Serializable private List userList; public TreeSelect(SysDeptTree dept) { - this.id = dept.getDeptId(); - this.parentId = dept.getParentId(); + this.id = Integer.valueOf(dept.getDeptId()); + this.parentId = Integer.valueOf(dept.getParentId()); this.label = dept.getDeptName(); this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); } public TreeSelect(MaType maType) { - this.parentId = maType.getParentId(); + this.parentId = Integer.valueOf(maType.getParentId()); this.code = maType.getCode(); this.level = Integer.valueOf(maType.getLevel()); - this.id = maType.getId(); + this.id = Integer.valueOf(maType.getId()); this.label = maType.getName(); this.companyId = maType.getCompanyId(); this.children = maType.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());