liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java
@@ -22,6 +22,9 @@
    /** 节点名称 */
    private String label;
    /** 节点名称 */
    private String deptCode;
    /** 子节点 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeSelect> children;
@@ -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;