CouponService.java 770 B

12345678910111213141516171819202122232425262728293031
  1. package com.example.hotel.bl.coupon;
  2. import com.example.hotel.po.Coupon;
  3. import com.example.hotel.vo.CouponVO;
  4. import com.example.hotel.vo.HotelTargetMoneyCouponVO;
  5. import com.example.hotel.vo.OrderVO;
  6. import java.util.List;
  7. public interface CouponService {
  8. /**
  9. * 返回某一订单可用的优惠策略列表
  10. * @param orderVO
  11. * @return
  12. */
  13. List<Coupon> matchOrderCoupon(OrderVO orderVO);
  14. /**
  15. * 查看某个酒店提供的所有优惠策略(包括失效的)
  16. * @param hotelId
  17. * @return
  18. */
  19. List<Coupon> getHotelAllCoupon(Integer hotelId);
  20. /**
  21. * 添加酒店满减优惠策略
  22. * @param couponVO
  23. * @return
  24. */
  25. CouponVO addHotelTargetMoneyCoupon(HotelTargetMoneyCouponVO couponVO);
  26. }