package com.ruoyi.inspect.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; /** * 检验报告 * @TableName ins_report */ @TableName(value ="ins_report") @Data public class InsReport implements Serializable { /** * */ @Schema(description = "主键") @TableId(type = IdType.AUTO) private Integer id; @Schema(description = "报告编号") private String code; /** * 外键:检验单id */ @Schema(description = "检验单id") private Integer insOrderId; /** 0:检测报告(仅检测数据),1:检验报告(含判定结果) */ @Schema(description = "报告类型,0:检测报告,1:检验报告") private Integer reportType; /** * 系统生成报告地址 */ @Schema(description = "系统生成报告地址") private String url; /** * 系统生成的检验报告地址;与 url 对应的检测报告共用同一条审批记录。 */ @Schema(description = "检验报告地址") private String inspectionUrl; /** * 手动上传报告地址 */ @Schema(description = "手动上传报告地址") private String urlS; /** * 临时报告地址 */ @Schema(description = "临时报告地址") private String tempUrlPdf; /** * 1:批准 0:不批准 */ @Schema(description = "批准状态") private Integer isRatify; @Schema(description = "批准备注") private String ratifyTell; /** * 1:审核通过 0:审核不通过 */ @Schema(description = "审核状态") private Integer isExamine; @Schema(description = "审核备注") private String examineTell; /** * 外键:用户id(提交人) */ @Schema(description = "提交人用户id") private Integer writeUserId; /** * 外键:用户id(批准人) */ @Schema(description = "批准人用户id") private Integer ratifyUserId; /** * 外键:用户id(审核人) */ @Schema(description = "审核人用户id") private Integer examineUserId; @Schema(description = "创建人") @TableField(fill = FieldFill.INSERT) private Integer createUser; @Schema(description = "创建时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @Schema(description = "更新人") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @Schema(description = "修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; /** * 1:已提交 0:待提交 */ @Schema(description = "提交状态") private Integer state; @Schema(description = "提交时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime writeTime; @Schema(description = "审核时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime examineTime; @Schema(description = "批准时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime ratifyTime; @Schema(description = "是否是通过的报告, 0:未通过, 1:通过") private Integer isPass; @Schema(description = "批准时选用的印章id(多选,逗号分隔)") private String sealIds; @Schema(description = "批准时选用的印章名称(多个,逗号分隔)") private String sealNames; @Schema(description = "MA标志章id(PDF第1页左上角)") private Integer maSealId; @Schema(description = "MA标志章名称") private String maSealName; @Schema(description = "报告章id(对应模板 seal1、seal2)") private Integer reportSealId; @Schema(description = "报告章名称") private String reportSealName; @Schema(description = "PDF骑缝章的印章id") private Integer seamSealId; @Schema(description = "PDF骑缝章的印章名称") private String seamSealName; }