aijinhui
2023-09-21 31189373f177755f0b0ec18c368cc3c33e3cd007
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelectWell.java
@@ -7,6 +7,7 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
@@ -25,36 +26,18 @@
    private String label;
    /** 子节点 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeSelectWell> children;
    public List<HealthVo> getWell() {
        return well;
    }
    public void setWell(List<HealthVo> well) {
        this.well = well;
    }
    private List<HealthVo> well = new ArrayList<>();
    private List<TreeSelectWell> children = new ArrayList<>();
    public TreeSelectWell()
    {
    }
    public TreeSelectWell(SysDept dept)
    public TreeSelectWell(TreeDeptWell dept)
    {
        this.id = dept.getDeptId();
        this.label = dept.getDeptName();
        this.children = dept.getChildren().stream().map(TreeSelectWell::new).collect(Collectors.toList());
    }
    public TreeSelectWell(SysMenu menu)
    {
        this.id = menu.getMenuId();
        this.label = menu.getMenuName();
        this.children = menu.getChildren().stream().map(TreeSelectWell::new).collect(Collectors.toList());
    }
    public Long getId()