| | |
| | | */
|
| | | public List<UserSystemCouponVO> getOrderCouponList(Long uid) throws UserSystemCouponException, Exception;
|
| | |
|
| | | /**
|
| | | * 查询商品使用相关券
|
| | | * @param uid
|
| | | * @return
|
| | | * @throws UserSystemCouponException
|
| | | * @throws Exception
|
| | | */
|
| | | public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
|
| | |
|
| | | /**
|
| | | * 更新券使用记录
|
| | |
| | | * @return 免单成功 true
|
| | | * @throws Exception
|
| | | */
|
| | | public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment, Long auctionId) throws Exception;
|
| | | public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment,
|
| | | Long auctionId , Integer sourceType) throws Exception;
|
| | |
|
| | | /**
|
| | | * 订单退款更新 券记录状态并退回券
|
| | | * @param orderNo
|
| | | */
|
| | | public void updateStateByDrawback(String orderNo) throws Exception;
|
| | | public void updateStateByDrawback(String orderNo, Integer sourceType) throws Exception;
|
| | |
|
| | | /**
|
| | | * 红包到账 -- 更新券使用状态 -改为使用成功
|
| | | * @param orderNo
|
| | | * @throws Exception
|
| | | */
|
| | | public void updateStateByArrivalAccount(String orderNo) throws Exception;
|
| | |
|
| | |
|
| | | |
| | | public void updateStateByArrivalAccount(String orderNo, Integer sourceType) throws Exception;
|
| | |
|
| | | /**
|
| | | * 统计今日抽奖中的券数量
|
| | |
| | | */
|
| | | public int countTodatyUserCouponBySource(Long uid, String source);
|
| | |
|
| | | |
| | |
|
| | | /**
|
| | | * 添加券
|
| | | * @param uid
|
| | | * @param couponType
|
| | | * @param source
|
| | | * @throws UserSystemCouponException
|
| | | */
|
| | | public void exchangeCoupon(Long uid, String couponType, String source,
|
| | | BigDecimal percent) throws UserSystemCouponException, Exception;
|
| | |
|
| | |
|
| | | /**
|
| | | * 券列表 1.6.5
|
| | |
| | | public UserSystemCoupon rewardCouponWin(Long uid, String source, int num, boolean notify,
|
| | | BigDecimal percent) throws UserSystemCouponException, Exception;
|
| | |
|
| | | /**
|
| | | * 免单券获得
|
| | | * @param uid
|
| | | * @param typeEnum
|
| | | * @param source
|
| | | * @param num
|
| | | * @param notify
|
| | | * @param expiryDay
|
| | | * @return
|
| | | * @throws UserSystemCouponException
|
| | | * @throws Exception
|
| | | */
|
| | | public UserSystemCoupon freeCouponWinBySystem(Long uid, CouponTypeEnum typeEnum, String source, int num, boolean notify,
|
| | | Integer expiryDay, Integer activated) throws UserSystemCouponException, Exception;
|
| | |
|
| | | /**
|
| | | * 获取有效免单券列表
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public List<UserSystemCouponVO> getFreeCouponList(Long uid);
|
| | |
|
| | | public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
|
| | |
|
| | | }
|