liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
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;