| | |
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
|
| | | import com.yeshi.fanli.entity.system.SystemCoupon;
|
| | |
| | | * @throws UserSystemCouponException
|
| | | * @throws Exception
|
| | | */
|
| | | public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
|
| | | public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType, AcceptData acceptData) throws UserSystemCouponException, Exception;
|
| | |
|
| | | /**
|
| | | * 根据订单号获取奖励券使用进度
|
| | |
| | | * @throws UserSystemCouponException
|
| | | * @throws Exception
|
| | | */
|
| | | public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception;
|
| | | public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent,Boolean needNotify) throws UserSystemCouponException, Exception;
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | * @throws Exception
|
| | | */
|
| | | public void randomRewardCoupon(int num, Long uid, String source) throws Exception;
|
| | | |
| | | |
| | | |
| | | |
| | | /**
|
| | | * 系统赠送奖励券
|
| | | * @param num
|
| | | * @param uid
|
| | | * @param source
|
| | | * @throws Exception
|
| | | */
|
| | | public void systemGiveRewardCoupon(Long uid,int num,String orderId,Integer orderType,String reason) throws Exception;
|
| | | |
| | | |
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 添加券
|
| | |
| | | * @throws UserSystemCouponException
|
| | | * @throws Exception
|
| | | */
|
| | | public List<UserSystemCouponVO> getCouponList(long start, int count, Long uid) throws UserSystemCouponException, Exception;
|
| | | public List<UserSystemCouponVO> getCouponList(AcceptData acceptData, long start, int count, Long uid) throws UserSystemCouponException, Exception;
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | public void updateCounponInvalid(List<UserSystemCoupon> list);
|
| | |
|
| | | /**
|
| | | * 兑换
|
| | | * 有效奖励券
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public boolean getIncludeExchange(Long uid);
|
| | | public boolean getValidRebateCoupon(Long uid);
|
| | |
|
| | | /**
|
| | | * 非兑换
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public boolean getIncludeNotExchange(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询1.6.5之前的 不等于35%
|
| | |
| | | * @return
|
| | | */
|
| | | public long countUsableFreeCouponForBuy(Long uid);
|
| | | |
| | | /**
|
| | | * 统计可使用的奖励券
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countUsableRewardCoupon(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询免券数量
|
| | | * @param uid
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type);
|
| | |
|
| | | /**
|
| | | * 激活免单券---订单已到账 触发激活免单券
|
| | | * @param uid
|
| | | */
|
| | | public void triggerFreeCouponActivate(Long uid, String orderNo, Integer source);
|
| | |
|
| | | /**
|
| | | * 退回券
|
| | | * @param giveid
|
| | | */
|
| | | public void sendBackByGiveId(Long giveid);
|
| | |
|
| | | /**
|
| | | * 统计赠送免单券
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countGiveFreeCoupon(Long uid);
|
| | |
|
| | | }
|