From f4a0f2acc63d7785eab108419a4e16f5f688cb95 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 18 一月 2020 12:06:27 +0800 Subject: [PATCH] 用户注册信息 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java | 43 ++++++++++++++++++++++++++++++++----------- 1 files changed, 32 insertions(+), 11 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 a02ebfd..9f2b4f8 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 @@ -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); /** @@ -103,4 +96,32 @@ * @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