yujian
2019-08-29 e1dcef9d29c8de98c603cd4880f6b272c23f1cc0
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java
@@ -14,6 +14,13 @@
   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 +59,13 @@
   List<UserSystemCoupon> getCounponNowInvalid(@Param("count")int count);
   
   /**
    * 获取已经过期但状态未改变的券
    * @param uid
    * @return
    */
   List<UserSystemCoupon> getCounponNowInvalidByUid(@Param("uid")Long uid);
   /**
    * 根据状态查询券
    * @param uid
    * @param source
@@ -65,21 +79,21 @@
    */
   List<UserSystemCoupon> getCouponByTypeAndNotActivated(@Param("uid") Long uid, @Param("couponId") Long couponId);
   
//   /**
//    *  查询兑换的券
//    * @param uid
//    * @param source
//    * @return
//    */
//   List<UserSystemCoupon> countIncludeExchange(@Param("uid") Long uid, @Param("source") String source);
//
//
//   /**
//    *  查询排出兑换的券
//    * @param uid
//    * @param source
//    * @return
//    */
//   List<UserSystemCoupon> countNotIncludeExchange(@Param("uid") Long uid, @Param("source") String source);
//
   /**
    *  查询兑换的券
    * @param uid
    * @param source
    * @return
    */
   List<UserSystemCoupon> getIncludeExchange(@Param("uid") Long uid, @Param("num") int num, @Param("type") String type);
   /**
    *  查询排出兑换的券
    * @param uid
    * @param source
    * @return
    */
   List<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @Param("type") String type);
}