admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java
@@ -78,22 +78,15 @@
    */
   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);
   /**
    *  查询排出兑换的券
    * @param uid
    * @param source
    * @return
    */
   List<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @Param("type") String type);
   List<UserSystemCouponVO> getValidByUidAndType(@Param("uid") Long uid, @Param("type") String type);
   
   
   /**
@@ -114,4 +107,21 @@
   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);
}