admin
2019-11-03 788deca1b4a24f8a24e49c24f7d89975a1d74bbe
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java
@@ -10,9 +10,15 @@
public interface UserSystemCouponMapper extends BaseMapper<UserSystemCoupon> {
   
   List<UserSystemCoupon> getUserCouponList(@Param("start") long start, @Param("count") int count, 
         @Param("uid") Long uid);
   List<UserSystemCouponVO> getCouponListOld(@Param("start") long start, @Param("count") int count,
         @Param("uid") Long uid);
   long countCouponOld(@Param("uid") Long uid);
   
   List<UserSystemCouponVO> getUserCouponVOList(@Param("start") long start, @Param("count") int count, 
         @Param("uid") Long uid);
@@ -52,6 +58,13 @@
   List<UserSystemCoupon> getCounponNowInvalid(@Param("count")int count);
   
   /**
    * 获取已经过期但状态未改变的券
    * @param uid
    * @return
    */
   List<UserSystemCoupon> getCounponNowInvalidByUid(@Param("uid")Long uid);
   /**
    * 根据状态查询券
    * @param uid
    * @param source
@@ -71,7 +84,7 @@
    * @param source
    * @return
    */
   List<UserSystemCoupon> getIncludeExchange(@Param("uid") Long uid, @Param("list") List<String> list);
   List<UserSystemCoupon> getIncludeExchange(@Param("uid") Long uid, @Param("num") int num, @Param("type") String type);
   
   
   /**
@@ -80,6 +93,42 @@
    * @param source
    * @return
    */
   List<UserSystemCoupon> getIncludeNotExchange(@Param("uid") Long uid,@Param("list") List<String> list);
   List<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @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<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);
   
}