zhaowenxuan
2025-06-27 0892d843cd394f383ff50f480f7f22f2ec3829bc
ltkj-common/src/main/java/com/ltkj/common/core/domain/TreeSelect.java
@@ -4,6 +4,7 @@
import java.util.List;
import java.util.stream.Collectors;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@@ -34,6 +35,10 @@
    private String qf;
    private String status;
    private String dj;
    /**
     * 子节点
     */
@@ -48,6 +53,8 @@
        this.id = dept.getDeptId();
        this.label = dept.getDeptName();
        this.qf=dept.getQf();
        this.status=dept.getStatus();
        this.dj=dept.getDj();
        this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
    }