zss
2023-08-25 3a4ec5e2eae59901979f4309acb44eebacb75c56
inspection-server/src/main/java/com/yuanchu/limslaboratory/pojo/vo/InspectionVo.java
@@ -5,6 +5,9 @@
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
//新增检验单
@@ -15,6 +18,7 @@
     *检验类型 0:原材料;1:产品;2:半成品;
     **/
    @JsonSerialize
    @NotNull(message = "检验类型不能为空")
    private Integer type;
    /**
@@ -22,30 +26,35 @@
     **/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotBlank(message = "来料日期不能为空")
    private Date formTime;
    /**
     * 供应商
     **/
    @JsonSerialize
    @NotBlank(message = "供应商不能为空")
    private String supplier;
    /**
     * 物料编码
     **/
    @JsonSerialize
    @NotBlank(message = "样品编码不能为空")
    private String mcode;
    /**
     * 物料名称
     **/
    @JsonSerialize
    @NotBlank(message = "样品名称不能为空")
    private String name;
    /**
     * 规格名称-型号名称
     **/
    @JsonSerialize
    @NotBlank(message = "规格型号不能为空")
    private String specifications;
    /**
@@ -58,6 +67,7 @@
     * 报检数量-物料数量
     **/
    @JsonSerialize
    @NotNull(message = "报检数量不能为空")
    private Integer num;
    /**
@@ -65,6 +75,7 @@
     **/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotBlank(message = "检验开始时间不能为空")
    private Date startTime;
    /**
@@ -72,5 +83,11 @@
     **/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotBlank(message = "检验结束时间不能为空")
    private Date endTime;
    //试验项目
    @NotBlank(message = "试验项目不能为空")
    @JsonSerialize
    private String experiment;
}