src/main/java/com/mzl/flower/service/coupon/CouponRecordService.java
@@ -6,6 +6,7 @@
import com.mzl.flower.dto.response.coupon.CouponRecordVO;
import com.mzl.flower.entity.coupon.CouponRecordDO;
import java.time.LocalDateTime;
import java.util.List;
/**
@@ -72,5 +73,33 @@
     */
    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) ;
}