package cn.ezhizao.project.business.carrier.domain;

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * 载具类别对象 biz_equipment_category
 *
 * @author ezhizao
 * @date 2023-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "biz_carrier_category")
public class BizCarrierCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 载具父级类别id
     */
    @ApiModelProperty(value = "载具父级类别id")
    private Long parentId;

    /**
     * 租户（厂别）id
     */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;
    /**
     * 载具类别编码
     */
    @Excel(name = "载具类别编码")
    @ApiModelProperty(value = "载具类别编码")
    private String code;

    /**
     * 载具类别名称
     */
    @Excel(name = "载具类别名称")
    @ApiModelProperty(value = "载具类别名称")
    private String name;

    /**
     * 载具类别描述
     */
    @Excel(name = "载具类别描述")
    @ApiModelProperty(value = "载具类别描述")
    private String remark;

    /**
     * 载具类别排序
     */
    @Excel(name = "载具类别排序")
    @ApiModelProperty(value = "载具类别排序")
    private Integer sort;

    // 是否检查载具
    private Integer isInspection;


    /* ********************************************* 虚字段 ********************************************* */

    /** 子类别 */
    @TableField(exist = false)
    private List<BizCarrierCategory> children;


    // 是否允许多批
    private Integer isAllowMore;
    private Integer isNone;
}
