From 69bee82b81626b82b7f39f0e459e4f56b1699b51 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 13 三月 2019 12:02:16 +0800
Subject: [PATCH] 正式数据库修改

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java |   82 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 80 insertions(+), 2 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 d2421e7..039d972 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
@@ -1,8 +1,10 @@
 package com.yeshi.fanli.service.inter.user;
 
+import java.math.BigDecimal;
 import java.util.List;
 
 import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
+import com.yeshi.fanli.entity.push.PushCoupon;
 import com.yeshi.fanli.entity.system.SystemCoupon;
 import com.yeshi.fanli.exception.user.UserSystemCouponException;
 import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
@@ -70,12 +72,12 @@
 	 * @throws UserSystemCouponException
 	 * @throws Exception
 	 */
-	public List<UserSystemCouponVO> getGoodsCouponList(Long uid) throws UserSystemCouponException, Exception;
+	public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
 
 	/**
 	 * 鏇存柊鍒镐娇鐢ㄨ褰�
 	 * @param uid
-	 * @param id
+	 * @param id 
 	 * @throws UserSystemCouponException
 	 * @throws Exception
 	 */
@@ -124,5 +126,81 @@
 	 */
 	public List<UserSystemCoupon> getUserCouponBySource(Long uid, String source);
 
+	/**
+	 * 鎻掑叆鍒镐俊鎭�
+	 * @param uid
+	 * @param couponType
+	 * @param source  鏉ユ簮
+	 * @throws UserSystemCouponException
+	 * @throws Exception
+	 */
+	public void insertUserCoupon(Long uid, String couponType, String source) throws UserSystemCouponException, Exception;
+
+	/**
+	 * 鍒稿凡杩囨湡鏇存柊
+	 * @param uid
+	 */
+	public void updateCounponInvalid(Long uid);
+
+	/**
+	 * 閫�鍥炲埜
+	 * @param uid
+	 */
+	public void sendBackTimeOutCoupon(Long uid);
+
+	/**
+	 * 婵�娲荤鍒╁厤鍗曞埜
+	 * @param uid
+	 */
+	public void activatedWelfareFreeCoupon(Long uid, String from);
+
+	/**
+	 * 鏇存柊鍒歌褰� 鈥斺�斿尮閰嶅厤鍗曞埜
+	 * @param uid        鐢ㄦ埛id
+	 * @param orderNo    璁㈠崟鍙�
+	 * @param payment    浠樻閲戦
+	 * @param auctionId  鍟嗗搧id(娣樺疂)
+	 * @return           鍏嶅崟鎴愬姛 true 
+	 * @throws Exception
+	 */
+	public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment, Long auctionId) throws  Exception;
+
+	/**
+	 * 璁㈠崟閫�娆炬洿鏂� 鍒歌褰曠姸鎬佸苟閫�鍥炲埜
+	 * @param orderNo
+	 */
+	public void updateStateByDrawback(String orderNo) throws Exception;
+
+	/**
+	 * 绾㈠寘鍒拌处 -- 鏇存柊鍒镐娇鐢ㄧ姸鎬� -鏀逛负浣跨敤鎴愬姛
+	 * @param orderNo
+	 * @throws Exception
+	 */
+	public void updateStateByArrivalAccount(String orderNo) throws Exception;
+
+	/**
+	 * 棰嗗彇鏈櫥褰曟椂宸叉娊濂栫殑绀煎搧
+	 * @param uid
+	 * @param platform
+	 * @param device
+	 * @throws Exception
+	 */
+	public void copyLotteryPrize(Long uid, int platform, String device) throws Exception;
+
+	
+	/**
+	 * 棰嗗彇鍒�
+	 * @param uid
+	 * @throws Exception
+	 */
+	public void receivedCoupon(Long uid) throws Exception;
+	
+	/**
+	 * 鏍规嵁鎺ㄩ�� 鑾峰彇瀵瑰簲鐨勫埜
+	 * @param pushCoupon
+	 * @param uid
+	 * @throws Exception
+	 */
+	public void randomRewardCoupon(PushCoupon pushCoupon, Long uid) throws Exception;
 	
 }

--
Gitblit v1.8.0