package com.yuanchu.limslaboratory.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.*; import lombok.experimental.Accessors; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; import java.io.Serializable; /** * 申请表(Inspection)表实体类 * * @author zss * @since 2023-08-03 13:04:05 */ @Data @Accessors(chain = true) @AllArgsConstructor @NoArgsConstructor @EqualsAndHashCode(callSuper = false) @Builder @TableName("inspection") public class Inspection implements Serializable { private static final long serialVersionUID = 1L; /** * 申请单编号 **/ @TableId(type = IdType.AUTO) private Integer id; /** * 申请单编码 **/ private String code; /** * 检验类型 0:原材料;1:产品;2:半成品; **/ private Integer type; /** * 检验状态:1:合格;0:不合格 **/ private Integer inspectionStatus; @ApiModelProperty(value = "逻辑删除 正常>=1,删除<=0", hidden = true) private Integer state; /** * 登记日期 **/ @TableField(fill = FieldFill.INSERT) @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date createTime; @TableField(fill = FieldFill.INSERT_UPDATE) @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date updateTime; /** * 关联 登记人(用户id) **/ private Integer userId; /** * 检验开始日期 **/ @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date startTime; /** * 检验结束日期 **/ @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date endTime; }