| | |
| | |
|
| | | public interface UserSystemCouponMapper extends BaseMapper<UserSystemCoupon> {
|
| | |
|
| | | |
| | | List<UserSystemCoupon> getUserCouponList(@Param("start") long start, @Param("count") int count,
|
| | | @Param("uid") Long uid);
|
| | |
|
| | |
| | | List<UserSystemCoupon> getCounponNowInvalid(@Param("count")int count);
|
| | |
|
| | | /**
|
| | | * 获取已经过期但状态未改变的券
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCoupon> getCounponNowInvalidByUid(@Param("uid")Long uid);
|
| | | |
| | | /**
|
| | | * 根据状态查询券
|
| | | * @param uid
|
| | | * @param source
|
| | |
| | | */
|
| | | List<UserSystemCoupon> getCouponByTypeAndNotActivated(@Param("uid") Long uid, @Param("couponId") Long couponId);
|
| | |
|
| | | |
| | | |
| | | /**
|
| | | * 查询兑换的券
|
| | | * 根据类型查询有效券
|
| | | * @param uid
|
| | | * @param source
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCoupon> getIncludeExchange(@Param("uid") Long uid, @Param("num") int num, @Param("type") String type);
|
| | | List<UserSystemCouponVO> getValidByUidAndType(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询排出兑换的券
|
| | | * 查询正在使用中 超过时间仍未匹配到订单记录
|
| | | * @param uid
|
| | | * @param seconds
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCoupon> getCouponByUsingTimeOut(@Param("uid") Long uid,@Param("list") List<Long> list, @Param("number") Long number);
|
| | |
|
| | |
|
| | | /**
|
| | | * 统计有效券
|
| | | * @param uid
|
| | | * @param listCouponId
|
| | | * @return
|
| | | */
|
| | | long countUsableByUid(@Param("uid") Long uid, @Param("list") List<Long> listCouponId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询免券
|
| | | * @param uid
|
| | | * @param source
|
| | | * @return
|
| | | */
|
| | | List<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @Param("type") String type);
|
| | | List<UserSystemCoupon> getFreeCouponByType(@Param("uid") Long uid, @Param("type") String type);
|
| | | |
| | | |
| | | /**
|
| | | * 查询需要激活的免券
|
| | | * @param uid
|
| | | * @param source
|
| | | * @return
|
| | | */
|
| | | UserSystemCoupon getNeedActivateCouponByType(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | | } |