package com.bonus.sgzb.material.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 下拉树-实体类
 * @Author 阮世耀
 * @Create 2023/12/13 15:45
 * @Version 1.0
 */
@Data
public class TypeTreeNode {

    private long typeId;

    private long parentId;
    private int companyId;

    private String num;

    private String unitNames;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String level;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String typeName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TypeTreeNode> children = new ArrayList<>();
}
