package com.yuanchu.mom.pojo.vo;
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.yuanchu.mom.pojo.RawInsProduct;
|
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;
|
import java.util.List;
|
|
@Data
|
//新增原材料检验单参数
|
public class RawInspectVo implements Serializable {
|
|
/* 检验详情 */
|
/**
|
* 来料日期
|
*/
|
@NotNull(message = "来料日期不能为空!")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date formTime;
|
|
/**
|
* 型号规格
|
*/
|
@NotBlank(message = "型号规格不能为空!")
|
@JsonSerialize
|
private String specifications;
|
|
/**
|
* 原材料编码
|
*/
|
@NotBlank(message = "原材料编码不能为空!")
|
@JsonSerialize
|
private String code;
|
|
/**
|
* 原材料名称
|
*/
|
@NotBlank(message = "原材料名称不能为空!")
|
@JsonSerialize
|
private String name;
|
|
|
/**
|
* 单位
|
*/
|
@NotBlank(message = "单位不能为空!")
|
@JsonSerialize
|
private String unit;
|
|
/**
|
* 数量
|
*/
|
@NotNull(message = "数量不能为空!")
|
@JsonSerialize
|
private Integer number;
|
|
/**
|
* 供应商
|
*/
|
@NotBlank(message = "供应商不能为空!")
|
private String supplier;
|
|
/**
|
* 报检人(当前用户名)
|
*/
|
@JsonSerialize
|
private String userName;
|
|
/* 检验项目 */
|
@JsonSerialize
|
private List<RawInsProductVo> rawInsProducts;
|
|
|
}
|