Commit 5c214da5 authored by 332784038@qq.com's avatar 332784038@qq.com

格式校验修改

parent 7b941876
...@@ -88,7 +88,7 @@ public class OrderBaseVO { ...@@ -88,7 +88,7 @@ public class OrderBaseVO {
@ApiModelProperty(value = "唛头") @ApiModelProperty(value = "唛头")
@NotBlank(message = "marks.not.null") @NotBlank(message = "marks.not.null")
@Length(max = 20, message = "marks.length.max") @Length(max = 20, message = "marks.length.max")
@Marks(message = "marks.format.incorrect") // @Marks(message = "marks.format.incorrect")
private String marks; private String marks;
@ApiModelProperty(value = "产品备案属性:1有牌,2无牌,3中性,4混牌") @ApiModelProperty(value = "产品备案属性:1有牌,2无牌,3中性,4混牌")
......
...@@ -8,6 +8,8 @@ import lombok.*; ...@@ -8,6 +8,8 @@ import lombok.*;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.*;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.*; import javax.validation.constraints.*;
...@@ -36,7 +38,9 @@ public class OfferBaseVO { ...@@ -36,7 +38,9 @@ public class OfferBaseVO {
private Long consigneeId; private Long consigneeId;
@ApiModelProperty(value = "唛头") @ApiModelProperty(value = "唛头")
@Marks(message = "marks.format.incorrect") @NotBlank(message = "marks.not.null")
@Length(max = 20, message = "marks.length.max")
// @Marks(message = "marks.format.incorrect")
private String marks; private String marks;
@ApiModelProperty(value = "订单类型(可多选):1 集运服务 2 海外仓") @ApiModelProperty(value = "订单类型(可多选):1 集运服务 2 海外仓")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment