From 27ccb7e19159a754e58fb60cccc7475433b45f62 Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com>
Date: 星期三, 11 九月 2024 15:47:58 +0800
Subject: [PATCH] 积分商品上架库存验证

---
 src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
index 5d34ca0..1af6f04 100644
--- a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java
@@ -4,6 +4,7 @@
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import javax.validation.constraints.Max;
 import javax.validation.constraints.Min;
 import javax.validation.constraints.NotEmpty;
 import javax.validation.constraints.NotNull;
@@ -52,6 +53,7 @@
     @ApiModelProperty(value ="领取后有效时间整数,比如90(天,小时,分钟)" )
     @NotNull(message = "领取后有效时间不能为空")
     @Min(value = 1,message = "领取后有效时间必须大于0")
+    @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
     private Integer usageTimeNum;
 
     /**
@@ -59,6 +61,7 @@
      */
     @ApiModelProperty(value = "使用条件")
     @NotNull(message = "使用条件不能为空")
+    @Max(value = 99999999,message = "使用条件不能超过99999999")
     private BigDecimal minOrderAmount;
 
     /**
@@ -67,6 +70,7 @@
     @ApiModelProperty(value = "优惠券面值")
     @NotNull(message = "优惠券面值不能为空")
     @Min(value = 1,message = "优惠券面值大于0")
+    @Max(value = 99999999,message = "优惠券面值不能超过99999999")
     private BigDecimal couponDiscountValue;
 
 

--
Gitblit v1.9.3