From 18a3d6e87e6682a19b421155cb168416dd73b349 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期六, 21 九月 2024 22:55:58 +0800
Subject: [PATCH] 1.优惠券文件描述修改,“订单金额不能小于折扣金额”修改成“优惠券使用条件不能小于面值金额”

---
 src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateUserDTO.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 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 01a29b8..9d94b20 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,9 +4,7 @@
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
-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.util.List;
 
@@ -52,6 +50,7 @@
     @ApiModelProperty(value ="领取后有效时间整数,比如90(天,小时,分钟)" )
     @NotNull(message = "领取后有效时间不能为空")
     @Min(value = 1,message = "领取后有效时间必须大于0")
+    @Max(value = 99999999,message = "领取后有效时间不能超过99999999")
     private Integer usageTimeNum;
 
     /**
@@ -59,6 +58,7 @@
      */
     @ApiModelProperty(value = "使用条件")
     @NotNull(message = "使用条件不能为空")
+    @Max(value = 99999999,message = "使用条件不能超过99999999")
     private BigDecimal minOrderAmount;
 
     /**
@@ -66,12 +66,13 @@
      */
     @ApiModelProperty(value = "优惠券面值")
     @NotNull(message = "优惠券面值不能为空")
-    @Min(value = 1,message = "优惠券面值大于0")
+    @DecimalMin(value = "0.01", inclusive = true,message = "优惠券面值大于0")
+    @Max(value = 99999999,message = "优惠券面值不能超过99999999")
     private BigDecimal couponDiscountValue;
 
 
     @ApiModelProperty(value = "指定的用户列表id")
     @NotNull(message = "指定的用户列表id不能为空")
-    private List<String> pointCostomIdList;
+    private List<Long> pointCostomIdList;
 
 }

--
Gitblit v1.9.3