From a3fbc3990b6bfb39aacc7edad459a762628526ba Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期五, 30 八月 2024 18:42:08 +0800 Subject: [PATCH] fix:会员保存空指针 --- 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