package cn.ezhizao.project.business.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 java.util.List;


/**
 * 电子图纸对象 biz_technological_process_detail_drawing
 *
 * @author ezhizao
 * @date 2024-05-30
 */
@Data
@TableName(value = "biz_technological_process_detail_drawing")
public class BizTechnologicalProcessDetailDrawing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租户id，厂别或类型1:Ⅰ类2：Ⅱ类 */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /** 工艺工序id */
    @ApiModelProperty(value = "${comment}")
    private Long technologicalProcessDetailId;

    /** 批准人id */
    @ApiModelProperty(value = "${comment}")
    private Long issuerId;

    /** 替换前图纸Id */
    @ApiModelProperty(value = "${comment}")
    private Long parentId;
    /** 审核人id */
    @ApiModelProperty(value = "${comment}")
    private Long reviewerId;
    /** 制作人id */
    @ApiModelProperty(value = "${comment}")
    private Long producerId;
    @ApiModelProperty(value = "审核人")
    private String reviewer;
    @ApiModelProperty(value = "制作人")
    private String producer;
    @ApiModelProperty(value = "批准人")
    private String issuer;
    /** 审核人id */
    @ApiModelProperty(value = "${comment}")
    private Long voidedId;
    @ApiModelProperty(value = "作废人")
    private String voided;

    @ApiModelProperty(value = "图纸状态：0：待审核，1待批准，2：待发行，3：作废")
    private Integer status;
    @ApiModelProperty(value = "标识")
    private Boolean  identification;
    /** 工艺版本id */
    @TableField(exist = false)
    @ApiModelProperty(value = "${comment}")
    private Long technologicalProcessId;
    /** 图纸地址 */
    @Excel(name = "图纸地址")
    @ApiModelProperty(value = "图纸地址")
    private String url;

    /** 图纸名称 */
    @Excel(name = "图纸名称")
    @ApiModelProperty(value = "图纸名称")
    private String drawingName;

    /** 会签类型 */
    @Excel(name = "会签类型")
    @ApiModelProperty(value = "会签类型")
    private String pattern;
    //用于查询虚拟字段
    @ApiModelProperty(value = "${comment}")
    private Long productId;

    @ApiModelProperty(value = "工序编码")
    private String processCode;
    @Excel(name = "工艺版本")
    @ApiModelProperty(value = "工艺版本编码")
    private String productVersion;
    @TableField(exist = false)
    private List<String> processCodes;
    @TableField(exist = false)
    private String processAlias;
}
