package com.casic.missiles.model.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cz
 * @since 2023-03-14
 */


@Data
@Builder
@TableName("business_certificate_print")
public class BusinessCertificatePrint implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * 证书报告编号
     */
    @TableField("certificate_report_code")
    private String certificateReportCode;

    /**
     * 证书报告名称
     */
    @TableField("certificate_report_name")
    private String certificateReportName;

    @TableField("original_record_id")
    private Long originalRecordId;

    /**
     * 证书类别，多个逗号分割（字典code），检测报告等
     */
    @TableField("certificate_report_category")
    private String certificateReportCategory;

    /**
     * 证书类型，样品内部校验证书等
     */
    @TableField("certificate_report_type")
    private String certificateReportType;

    /**
     * 样品id
     */
    @TableField("sample_id")
    private Long sampleId;

    /**
     * 委托书id
     */
    @TableField("order_id")
    private Long orderId;
    /**
     * 审批状态
     */
    @TableField("approval_status")
    private String approvalStatus;

    /**
     * 流程实例id
     */
    @TableField("process_id")
    private String processId;


    /**
     * 证书报告id
     */
    @TableField("template_id")
    private Long templateId;
    /**
     * 电子章id
     */
    @TableField("sign_id")
    private Long signId;

    /**
     * 打印次数
     */
    @TableField("print_num")
    private Integer printNum;

    /**
     * 打印状态(字典code）
     */
    @TableField("print_status")
    private String printStatus;

    /**
     * 检定部门id（可用于获取实验室已完成证书个数）
     */
    @TableField("measure_dept_id")
    private Long measureDeptId;

    /**
     * 检定人员(证书打印)
     */
    @TableField("measure_person_id")
    private Long measurePersonId;

    /**
     * 发证单位
     */
    @TableField("certificate_organization")
    private String certificateOrganization;

    @TableField("print_file_name")
    private String printFileName;
    /**
     * 证书报告附件（minio存储文件名）
     */
    @TableField("certificate_report_file")
    private String certificateReportFile;

    @TableField("remark")
    private String remark;

    @TableField("create_user")
    private Long createUser;

    @TableField("create_time")
    private String createTime;

    @TableField("is_del")
    private Boolean isDel;

}
