|
@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
@@ -18,18 +20,23 @@ public class SaveBoxCodeFormatReq implements Serializable {
|
|
|
@ApiModelProperty(value = "id")
|
|
|
private Long id;
|
|
|
|
|
|
+ @NotEmpty(message = "箱码幅面名称不能为空")
|
|
|
@ApiModelProperty(value = "箱码幅面名称")
|
|
|
private String name;
|
|
|
|
|
|
+ @NotNull(message = "码库不能为空")
|
|
|
@ApiModelProperty(value = "码库id")
|
|
|
private Long qrRepertoryId;
|
|
|
|
|
|
+ @NotNull(message = "包材厂不能为空")
|
|
|
@ApiModelProperty(value = "包材厂id")
|
|
|
private Long factoryId;
|
|
|
|
|
|
+ @NotNull(message = "每卷色标量不能为空")
|
|
|
@ApiModelProperty(value = "每卷色标量")
|
|
|
private Integer colorPerRollScalar;
|
|
|
|
|
|
+ @NotNull(message = "幅面数量不能为空")
|
|
|
@ApiModelProperty(value = "幅面数量")
|
|
|
private Integer formatNumber;
|
|
|
|