| | |
| | | package com.mzl.flower.service.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mzl.flower.dto.request.coupon.CreateCouponRecordDTO; |
| | | import com.mzl.flower.dto.request.coupon.QueryCouponRecordDTO; |
| | | import com.mzl.flower.dto.request.coupon.QueryCouponStatisticsBO; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.mzl.flower.dto.request.coupon.*; |
| | | import com.mzl.flower.dto.response.coupon.CouponRecordVO; |
| | | import com.mzl.flower.entity.coupon.CouponRecordDO; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | 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 |
| | | */ |
| | | Integer getExistCouponAmount(QueryExistCouponDTO queryExistCouponDTO); |
| | | |
| | | /** |
| | | * 根据优惠券的ID来查找已经领取的优惠券的数量 |
| | | * @param couponId |
| | | * @return |
| | | */ |
| | | Integer getExistGainCouponRecordAmountById(String couponId); |
| | | |
| | | Integer getUserGainCouponRecordAmountById(String couponId,Long customerId); |
| | | |
| | | List<CouponRecordVO> getMineCouponRecordList(QueryMineCouponRecordDTO dto); |
| | | |
| | | /** |
| | | * 检查优惠券是否到期 |
| | | * @param dto |
| | | */ |
| | | void checkCouponExpired(QueryMineCouponRecordDTO dto); |
| | | |
| | | boolean checkCurMonVipCouponExists(String couponId, Long customId, LocalDateTime startDateTime,LocalDateTime endDateTime); |
| | | |
| | | /** |
| | | * 优惠券使用 |
| | | * @param couponId |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | boolean useCoupon(String couponId,String orderId); |
| | | |
| | | /** |
| | | * 优惠券退单 |
| | | * @param couponId |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | boolean cancelCouponUsage(String couponId,String orderId); |
| | | |
| | | /** |
| | | * 根据订单号查找优惠券信息 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | List<CouponRecordDO> getCouponListByOrderId(String orderId) ; |
| | | |
| | | |
| | | CouponRecordDO getCouponByOrderId(String orderId) ; |
| | | |
| | | |
| | | } |