diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/store/domain/Store.java b/smart-switch-service/src/main/java/com/ruoyi/ss/store/domain/Store.java index 9945d487..0e7257ef 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/store/domain/Store.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/store/domain/Store.java @@ -104,22 +104,19 @@ public class Store extends BaseEntity /** 省 */ @Excel(name = "省") - @NotNull(message = "省不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) - @Size(min = 1, max = 30, message = "省长度必须在1~30之间") + @Size(max = 30, message = "省长度不允许超过30字符") @JsonView(JsonViewProfile.App.class) private String province; /** 市 */ @Excel(name = "市") - @NotNull(message = "市不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) - @Size(min = 1, max = 60, message = "市长度必须在1~60之间") + @Size(max = 60, message = "市长度不允许超过60字符") @JsonView(JsonViewProfile.App.class) private String city; /** 区县 */ @Excel(name = "区县") - @NotNull(message = "区县不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) - @Size(min = 1, max = 60, message = "区县长度必须在1~60之间") + @Size( max = 60, message = "区县长度不允许超过60字符") @JsonView(JsonViewProfile.App.class) private String county;