package com.ruoyi.web.v2.v1.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.util.Date;

@Data
public class EditProduceReq{

    @NotNull(message = "供应商ID不能为空")
    private Integer supplierId;

    @NotNull(message = "入场批次ID不能为空")
    private Integer entranceBatchId;

    @NotNull(message = "肉商ID不能为空")
    private Integer purchaserId;

    @Size(min = 9, max = 999, message = "肉品合格证输入超出设定范围限制（9~999）")
    private String meatCert;

    @Size(min = 10, max = 999, message = "动物检疫合格证输入超出设定范围限制（10~999）")
    private String animalCert;
}
