|
@@ -40,6 +40,8 @@ public class TreeSelect implements Serializable {
|
|
|
*/
|
|
*/
|
|
|
private String deptNum;
|
|
private String deptNum;
|
|
|
|
|
|
|
|
|
|
+ private Integer subOrDept;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 子节点
|
|
* 子节点
|
|
|
*/
|
|
*/
|
|
@@ -56,6 +58,7 @@ public class TreeSelect implements Serializable {
|
|
|
this.parentId = dept.getParentId();
|
|
this.parentId = dept.getParentId();
|
|
|
this.ancestors = dept.getAncestors();
|
|
this.ancestors = dept.getAncestors();
|
|
|
this.deptNum = dept.getDeptNum();
|
|
this.deptNum = dept.getDeptNum();
|
|
|
|
|
+ this.subOrDept = dept.getSubOrDept();
|
|
|
this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
|
this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -112,4 +115,12 @@ public class TreeSelect implements Serializable {
|
|
|
public void setDeptNum(String deptNum) {
|
|
public void setDeptNum(String deptNum) {
|
|
|
this.deptNum = deptNum;
|
|
this.deptNum = deptNum;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public Integer getSubOrDept() {
|
|
|
|
|
+ return subOrDept;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setSubOrDept(Integer subOrDept) {
|
|
|
|
|
+ this.subOrDept = subOrDept;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|