package com.bonus.common.biz.domain;

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

import javax.validation.constraints.Digits;
import java.math.BigDecimal;
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;

    @Digits(integer = Integer.MAX_VALUE, fraction = 3)
    private BigDecimal num;

    private String manageType;

    private String unitName;

    private String unitValue;

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

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

    private String materialName;

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