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());