From ae1471f378f399f76518539ec8992e64a3673436 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 08 一月 2025 15:26:06 +0800
Subject: [PATCH] 1.订单提交:订单最小金额配置

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

diff --git a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java b/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
index e2dd62a..6e2b34e 100644
--- a/src/main/java/com/mzl/flower/dto/request/coupon/CreateCouponTemplateActivyDTO.java
+++ b/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;
 
 
@@ -143,5 +144,10 @@
     @Max(value = 99999999,message = "每人限领不能超过99999999")
     private Integer getLimit;
 
+    /**
+     * 优惠券图片
+     */
+    @ApiModelProperty(value = "优惠券图片")
+    private String imageUrl;
 
 }

--
Gitblit v1.9.3