From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 25 二月 2025 16:41:22 +0800
Subject: [PATCH] 淘宝转链接口更新

---
 fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserSystemCouponMapper.java |   97 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 97 insertions(+), 0 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 1e69972..fd70d2c 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
@@ -13,6 +13,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);
 	
@@ -27,4 +34,94 @@
 	List<UserSystemCouponVO> getEnableListByCouponId(@Param("uid") Long uid, @Param("activated") Integer activated,
 			@Param("list") List<Long> listCouponId);
 
+	/**
+	 * 鏍规嵁鏉ユ簮鏌ヨ璁㈠崟
+	 * @param uid
+	 * @param source
+	 * @return
+	 */
+	List<UserSystemCoupon> getUserCouponBySource(@Param("uid") Long uid, @Param("source") String source);
+	
+	/**
+	 * 鏍规嵁鏉ユ簮鏌ヨ璁㈠崟
+	 * @param uid
+	 * @param source
+	 * @return
+	 */
+	int countTodatyUserCouponBySource(@Param("uid") Long uid, @Param("source") String source);
+	
+	/**
+	 * 鑾峰彇宸茬粡杩囨湡浣嗙姸鎬佹湭鏀瑰彉鐨勫埜
+	 * @param uid
+	 * @return
+	 */
+	List<UserSystemCoupon> getCounponNowInvalid(@Param("count")int count);
+	
+	/**
+	 * 鑾峰彇宸茬粡杩囨湡浣嗙姸鎬佹湭鏀瑰彉鐨勫埜
+	 * @param uid
+	 * @return
+	 */
+	List<UserSystemCoupon> getCounponNowInvalidByUid(@Param("uid")Long uid);
+	
+	/**
+	 * 鏍规嵁鐘舵�佹煡璇㈠埜
+	 * @param uid
+	 * @param source
+	 * @return
+	 */
+	List<UserSystemCoupon> getCouponByState(@Param("uid") Long uid, @Param("state") String state);
+	
+	/**
+	 * 鏌ヨ娌℃湁婵�娲荤殑鍒� 
+	 * @param couponId
+	 */
+	List<UserSystemCoupon> getCouponByTypeAndNotActivated(@Param("uid") Long uid, @Param("couponId") Long couponId);
+	
+	
+	
+	/**
+	 *  鏍规嵁绫诲瀷鏌ヨ鏈夋晥鍒�
+	 * @param uid
+	 * @param source
+	 * @return
+	 */
+	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<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