chenrui
5 天以前 8dce4b82eeece943b56182eeebc1c9332625924c
src/main/java/com/ruoyi/framework/web/domain/TreeSelect.java
@@ -24,6 +24,9 @@
    /** 节点名称 */
    private String label;
    /** 节点ID */
    private Long value;
    /** 节点禁用 */
    private boolean disabled = false;
@@ -39,6 +42,7 @@
    public TreeSelect(SysDept dept)
    {
        this.id = dept.getDeptId();
        this.value = dept.getDeptId();
        this.label = dept.getDeptName();
        this.disabled = StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus());
        this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
@@ -90,4 +94,12 @@
    {
        this.children = children;
    }
    public Long getValue() {
        return value;
    }
    public void setValue(Long value) {
        this.value = value;
    }
}