From fc3ff48eade6ad0a54c3ab0669b846bb9a51f4db Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <cuizf@fengyuntec.com>
Date: 星期六, 31 八月 2024 22:17:39 +0800
Subject: [PATCH] 下单时的一些处理 TODO

---
 src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java b/src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java
index 8ae3a4d..46fe72b 100644
--- a/src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java
+++ b/src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java
@@ -45,17 +45,26 @@
      */
     boolean expiredCouponRecordByListCurMonth();
 
-    int statisCouponTemplateCount(QueryCouponStatisticsBO queryCouponStatisticsBO);
+    Integer statisCouponTemplateCount(QueryCouponStatisticsBO queryCouponStatisticsBO);
 
-    int statisCouponTemplateCurMonCount(QueryCouponStatisticsBO queryCouponStatisticsBO);
+    Integer statisCouponTemplateCurMonCount(QueryCouponStatisticsBO queryCouponStatisticsBO);
 
-    int statisCouponPointCurMonPontAmonut(QueryCouponStatisticsBO queryCouponStatisticsBO);
+    Integer statisCouponPointCurMonPontAmonut(QueryCouponStatisticsBO queryCouponStatisticsBO);
 
     /**
      * 根据优惠券种类,优惠券ID,用户的ID查找优惠券的记录数量
      * @param queryExistCouponDTO
      * @return
      */
-    int getExistCouponAmount(QueryExistCouponDTO queryExistCouponDTO);
+    Integer getExistCouponAmount(QueryExistCouponDTO queryExistCouponDTO);
+
+    /**
+     * 根据优惠券的ID来查找已经领取的优惠券的数量
+     * @param couponId
+     * @return
+     */
+    Integer getExistGainCouponRecordAmountById(String couponId);
+
+    Integer getUserGainCouponRecordAmountById(String couponId,Long customerId);
 
 }

--
Gitblit v1.9.3