|  |  | 
 |  |  | import com.mzl.flower.dto.response.coupon.CouponRecordVO; | 
 |  |  | import com.mzl.flower.entity.coupon.CouponRecordDO; | 
 |  |  |  | 
 |  |  | import java.math.BigDecimal; | 
 |  |  | import java.time.LocalDateTime; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  | 
 |  |  |      * 根据当月日期设置上个月的日期的优惠券过期 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     boolean expiredCouponRecordByListCurMonth(); | 
 |  |  |     boolean expiredCouponRecordLastMon(); | 
 |  |  |  | 
 |  |  |     Integer statisCouponTemplateCount(QueryCouponStatisticsBO queryCouponStatisticsBO); | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |     Integer getUserGainCouponRecordAmountById(String couponId,Long customerId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * | 
 |  |  |      * @param couponId | 
 |  |  |      * @param userId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Integer getUserGainCouponRecordAmountByUserId(String couponId,String userId); | 
 |  |  |  | 
 |  |  |     List<CouponRecordVO> getMineCouponRecordList(QueryMineCouponRecordDTO dto); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     void checkCouponExpired(QueryMineCouponRecordDTO dto); | 
 |  |  |  | 
 |  |  |     boolean checkCurMonVipCouponExists(String couponId, Long customId, LocalDateTime startDateTime,LocalDateTime endDateTime); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 优惠券的使用 | 
 |  |  |      * @param couponId 优惠券ID | 
 |  |  |      * @param orderId 订单的ID | 
 |  |  |      * @param orderMount 订单的金额 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     boolean useCoupon(String couponId, String orderId, BigDecimal orderMount); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 优惠券退单 | 
 |  |  |      * @param orderId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     boolean cancelCouponUsage(String orderId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据订单号查找优惠券信息 | 
 |  |  |      * @param orderId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<CouponRecordDO> getCouponListByOrderId(String orderId) ; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     CouponRecordDO getCouponByOrderId(String orderId) ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 查看当前人员是否已经重复发过此优惠券 | 
 |  |  |      * @param couponId | 
 |  |  |      * @param customId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     boolean checkUserCouponExists(String couponId, Long customId); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     boolean expireCouponRecordAll(); | 
 |  |  | } |