From 98b1a0affd69bbe63223c21fdd2c404e8bedfccb Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 20 五月 2020 17:25:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/div' into 2.1.2

---
 fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java |   45 ++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 5 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 a0ebf86..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
@@ -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);
 	
@@ -59,6 +58,13 @@
 	List<UserSystemCoupon> getCounponNowInvalid(@Param("count")int count);
 	
 	/**
+	 * 鑾峰彇宸茬粡杩囨湡浣嗙姸鎬佹湭鏀瑰彉鐨勫埜
+	 * @param uid
+	 * @return
+	 */
+	List<UserSystemCoupon> getCounponNowInvalidByUid(@Param("uid")Long uid);
+	
+	/**
 	 * 鏍规嵁鐘舵�佹煡璇㈠埜
 	 * @param uid
 	 * @param source
@@ -72,21 +78,50 @@
 	 */
 	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);
+	List<UserSystemCouponVO> getValidByUidAndType(@Param("uid") Long uid, @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<UserSystemCouponVO> getIncludeNotExchange(@Param("uid") Long uid,@Param("num") int num, @Param("type") String type);
+	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