src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
@@ -6,10 +6,7 @@ import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.*; import java.math.BigDecimal; import java.time.LocalDateTime; @@ -113,6 +110,8 @@ */ @ApiModelProperty(value = "使用条件,满多少钱") @NotNull(message = "使用条件不能为空") @Max(value = 99999999,message = "使用条件不能超过99999999") @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0") private BigDecimal minOrderAmount; /** @@ -120,6 +119,8 @@ */ @ApiModelProperty(value = "优惠券面值") @NotNull(message = "优惠券面值不能为空") @DecimalMin(value = "0.01", inclusive = true,message = "优惠券面值大于0") @Max(value = 99999999,message = "优惠券面值不能超过99999999") private BigDecimal couponDiscountValue; src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplatePointDTO.java
@@ -61,6 +61,7 @@ @ApiModelProperty(value = "使用条件") @NotNull(message = "使用条件不能为空") @Max(value = 99999999,message = "使用条件不能超过99999999") @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0") private BigDecimal minOrderAmount; /** src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
@@ -59,6 +59,7 @@ @ApiModelProperty(value = "使用条件") @NotNull(message = "使用条件不能为空") @Max(value = 99999999,message = "使用条件不能超过99999999") @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0") private BigDecimal minOrderAmount; /** src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateVipDTO.java
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.DecimalMin; import javax.validation.constraints.Max; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; @@ -43,6 +44,7 @@ @ApiModelProperty(value = "优惠券面值") @NotNull(message = "优惠券面值不能为空") @Max(value = 99999999,message = "优惠券面值不能超过99999999") @DecimalMin(value = "0.01", inclusive = true,message = "优惠券面值大于0") private BigDecimal couponDiscountValue; /** @@ -51,6 +53,7 @@ @ApiModelProperty(value = "使用条件") @NotNull(message = "使用条件不能为空") @Max(value = 99999999,message = "使用条件不能超过99999999") @DecimalMin(value = "0.01", inclusive = true,message = "使用条件大于0") private BigDecimal minOrderAmount;