package com.junmp.jyzb.api.bean.req.PrintReq;

import com.junmp.v2.common.bean.request.ValidationApi;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 直接生成EPC  请求实体类
 */
@Data
public class GenerateIntTagEpcReq {
    @NotEmpty(message = "物资代码不能为空",groups ={ValidationApi.edit.class})
    private String sizeCode;
    @NotEmpty(message = "号型代码不能为空",groups ={ValidationApi.edit.class})
    private String equCode;
    @NotEmpty(message = "供应商代码不能为空",groups ={ValidationApi.edit.class})
    private String supplierCode;
    @NotNull(message = "物资数量不能为空",groups ={ValidationApi.edit.class})
    private Integer quantity;
    @NotEmpty(message = "生产日期不能为空",groups ={ValidationApi.edit.class})
    private Date productTime;
    @NotNull(message = "质保周期不能为空",groups ={ValidationApi.edit.class})
    private Integer warrantyCycle;
    //箱标还是件标
    private String labelType;
    //向向内数量
    private Integer oneBoxNum;

    //用于获取加密数据
    private String body;
}
