| | |
| | | import com.mzl.flower.dto.response.coupon.CouponRecordVO; |
| | | import com.mzl.flower.entity.coupon.CouponRecordDO; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | 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) ; |
| | | |
| | | |
| | | } |