From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 十一月 2019 18:30:01 +0800 Subject: [PATCH] 配置文件修改 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java | 37 ++++++++++++++++++++++++++++++++++++- 1 files changed, 36 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java index 3c733d8..0a7d298 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java @@ -10,7 +10,6 @@ public interface UserSystemCouponMapper extends BaseMapper<UserSystemCoupon> { - List<UserSystemCoupon> getUserCouponList(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); @@ -96,4 +95,40 @@ */ List<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @Param("type") String type); + + /** + * 鏌ヨ姝e湪浣跨敤涓� 瓒呰繃鏃堕棿浠嶆湭鍖归厤鍒拌鍗曡褰� + * @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); + } \ No newline at end of file -- Gitblit v1.8.0