From d88c167fc5973a2c15ff1539e4cdab36e4a7842c Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 28 八月 2019 14:47:15 +0800
Subject: [PATCH] 奖励券使用区分订单下单三方日期

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java |   53 ++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
index 5c7373f..b0c56aa 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java
@@ -4,6 +4,7 @@
 import java.util.List;
 
 import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
+import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
 import com.yeshi.fanli.entity.system.SystemCoupon;
 import com.yeshi.fanli.exception.user.UserSystemCouponException;
 import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
@@ -133,13 +134,8 @@
 	 * @throws UserSystemCouponException
 	 * @throws Exception
 	 */
-	public void insertUserCoupon(Long uid, String couponType, String source) throws UserSystemCouponException, Exception;
+	public void insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent) throws UserSystemCouponException, Exception;
 
-	/**
-	 * 鍒稿凡杩囨湡鏇存柊
-	 * @param uid
-	 */
-	public void updateCounponInvalid(Long uid);
 
 	/**
 	 * 閫�鍥炲埜
@@ -235,14 +231,49 @@
 	 * @return
 	 * @throws UserSystemCouponException
 	 */
-	public String giveCoupon(Long uid, Long id) throws UserSystemCouponException;
+	public UserSystemCouponVO giveCoupon(Long uid, Long id) throws UserSystemCouponException;
+
 
 	/**
-	 * 鏇存柊璧犻�佽褰�
-	 * @param uid
+	 * 璧犻�侀��鍥�
 	 * @param id
-	 * @param couponType
 	 */
-	public void updateGiveRecord(Long uid, Long id, String couponType);
+	public void sendBackGiveCoupon(List<UserSystemCouponGiveRecord> overdueList);
+
+	/**
+	 * 鏌ヨ闇�瑕佽繃鏈熺殑
+	 * @param count
+	 * @return
+	 */
+	public List<UserSystemCoupon> getCounponNowInvalid(int count);
+
+	/**
+	 * 杩囨湡鍒�
+	 * @param list
+	 */
+	public void updateCounponInvalid(List<UserSystemCoupon> list);
+
+	/**
+	 * 鍏戞崲
+	 * @param uid
+	 * @return
+	 */
+	public boolean getIncludeExchange(Long uid);
+
+	/**
+	 * 闈炲厬鎹�
+	 * @param uid
+	 * @return
+	 */
+	public boolean getIncludeNotExchange(Long uid);
+
+	/**
+	 * 鏌ヨ1.6.5涔嬪墠鐨�  涓嶇瓑浜�35%
+	 * @param uid
+	 * @return
+	 */
+	public List<UserSystemCouponVO> listIncludeNotExchange(Long uid) throws Exception;
+
+	public long countCouponOld(Long uid);
 
 }

--
Gitblit v1.8.0