package com.yuanchu.mom.pojo; import com.baomidou.mybatisplus.annotation.*; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.yuanchu.mom.annotation.ValueTableShow; import com.yuanchu.mom.common.OrderBy; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * 检验报告 * @TableName ins_report */ @TableName(value ="ins_report") @Data public class InsReport extends OrderBy implements Serializable { /** * */ @TableId(type = IdType.AUTO) private Integer id; @ValueTableShow(value = 1, name = "报告编号") @ApiModelProperty("报告编号") private String code; /** * 外键:检验单id */ private Integer insOrderId; /** * 外键:样品idid */ private Integer insSampleId; /** * 系统生成报告地址 */ private String url; /** * 手动上传报告地址 */ private String urlS; /** * 1:批准 0:不批准 */ @ValueTableShow(value = 11, name = "批准状态") private Integer isRatify; @ValueTableShow(value = 12, name = "批准备注") private String ratifyTell; /** * 1:审核通过 0:审核不通过 */ @ValueTableShow(value = 7, name = "审核状态") private Integer isExamine; @ValueTableShow(value = 8, name = "审核备注") private String examineTell; /** * 外键:用户id(提交人) */ private Integer writeUserId; /** * 外键:用户id(批准人) */ private Integer ratifyUserId; /** * 外键:用户id(审核人) */ private Integer examineUserId; @TableField(fill = FieldFill.INSERT) private Integer createUser; @ValueTableShow(value = 2, name = "创建时间") @ApiModelProperty("创建时间") @TableField(fill = FieldFill.INSERT) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime createTime; @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @ApiModelProperty("修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime updateTime; /** * 1:已提交 0:待提交 */ @ValueTableShow(value = 4, name = "提交状态") private Integer state; @ValueTableShow(value = 5, name = "提交时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime writeTime; @ValueTableShow(value = 9, name = "审核时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime examineTime; @ValueTableShow(value = 13, name = "批准时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime ratifyTime; }