package com.bonus.sgzb.material.domain;

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

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

/**
 * @author 10488
 * 下拉树-实体类
 */
@Data
public class TreeNode {

    private long id;

    private String label;

    private long parentId;

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

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

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

    private String code;

    private float num;

    private String modelCode;

    private String manageType;

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