package cn.ezhizao.project.business.daywork.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;

/**
 * 企业租户对象 biz_lot
 *
 * @author ezhizao
 * @date 2024-03-13
 */
@Data
@TableName(value = "biz_lot")
public class BizLot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租户id */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /** 批次号 */
    @Excel(name = "批次号")
    @ApiModelProperty(value = "批次号")
    private String lotCode;

    @ApiModelProperty(value = "是否批废")
    private Integer  isWaste;

    /** 是否尾批（0：默认，1: 是尾批） */
    @Excel(name = "是否尾批", readConverterExp = "0=：默认，1:,是=尾批")
    @ApiModelProperty(value = "是否尾批")
    private Integer isLast;

    /** 计划单id（后续迭代P2的时候，应该会用到） */
    @ApiModelProperty(value = "是否尾批")
    private Long productionPlanId;

    /** 计划单明细id */
    @ApiModelProperty(value = "是否尾批")
    private Long productionPlanDetailId;

    /** 工艺id */
    @ApiModelProperty(value = "是否尾批")
    private Long technologicalProcessId;

    /** 工艺版本A,B,C */
    @Excel(name = "工艺版本A,B,C")
    @ApiModelProperty(value = "工艺版本A,B,C")
    private String technologyVersion;

    /** 产品id */
    @ApiModelProperty(value = "工艺版本A,B,C")
    private Long productId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    @ApiModelProperty(value = "产品编码")
    private String productCode;

    /** 产品规格 */
    @Excel(name = "产品规格")
    @ApiModelProperty(value = "产品规格")
    private String specification;

    /** 产品图号 */
    @Excel(name = "产品图号")
    @ApiModelProperty(value = "产品图号")
    private String drawingNumber;

    /** 产品描述 */
    @Excel(name = "产品描述")
    @ApiModelProperty(value = "产品描述")
    private String productDescription;

    @Excel(name = "是否修改")
    @ApiModelProperty(value = "是否修改")
    private Integer isAmend;

    /** 生产数量 */
    @Excel(name = "生产数量")
    @ApiModelProperty(value = "生产数量")
    private Integer productionQuantity;

    @TableField(exist = false)
    private Integer pudName;

    @TableField(exist = false)
    private String processAlias;

    /** 所有载具 */
    @TableField(exist = false)
    private String allCarrierName;

    @TableField(exist = false)
    private Long dayworkItemId;

    /** 所有载具 */
    @TableField(exist = false)
    private String carrierCode;

    /** 载具id */
    @TableField(exist = false)
    private Long carrierId;



    //领料部门id
    private Long requisitionDepartmentId;

    /**
     * 是否废品回收
     */
    private Integer isWasteRecycling;
    //领料部门名称
    private String requisitionDepartmentName;
    @TableField(exist = false)
    private String flag;
    private Long fromId;



}