XiaoRuby
2023-08-07 d8a687741273d121586b83745280c57f7e9d3297
inspection-server/src/main/java/com/yuanchu/limslaboratory/pojo/Inspection.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,89 @@
package com.yuanchu.limslaboratory.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
    /**
     * ${column.comment}
     **/
    private Integer state;
    /**
     * ç™»è®°æ—¥æœŸ
     **/
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * ${column.comment}
     **/
    @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;
}