zjh
2025-01-20 73a816fd2b1e29c25d615c85ce34b12b55c16ccf
ltkj-common/src/main/java/com/ltkj/common/core/domain/TreeSelect.java
@@ -9,12 +9,14 @@
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ltkj.common.core.domain.entity.SysDept;
import com.ltkj.common.core.domain.entity.SysMenu;
import lombok.Data;
/**
 * Treeselect树结构实体类
 *
 * @author ltkj
 */
@Data
public class TreeSelect implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -32,6 +34,8 @@
    private String qf;
    private String status;
    /**
     * 子节点
     */
@@ -46,6 +50,7 @@
        this.id = dept.getDeptId();
        this.label = dept.getDeptName();
        this.qf=dept.getQf();
        this.status=dept.getStatus();
        this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
    }