From 6c68cf469de71773039c2cca8498f35b80b2891b Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 05 九月 2023 18:36:07 +0800
Subject: [PATCH] 唯品会订单修改/猜你喜欢过来的商品不能分享
---
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserSystemCouponService.java | 670 +++++++++++++++++++++++++++----------------------------
1 files changed, 329 insertions(+), 341 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 40effa6..1bb631a 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,341 +1,329 @@
-package com.yeshi.fanli.service.inter.user;
-
-import java.math.BigDecimal;
-import java.util.List;
-
-import com.yeshi.fanli.entity.accept.AcceptData;
-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;
-import com.yeshi.fanli.vo.user.UserSystemCouponVO;
-
-public interface UserSystemCouponService {
-
- public int insertSelective(UserSystemCoupon record);
-
- public UserSystemCoupon selectByPrimaryKey(Long id);
-
- public int updateByPrimaryKeySelective(UserSystemCoupon record);
-
- public int updateByPrimaryKey(UserSystemCoupon record);
-
- /**
- * 鏌ヨ鐢ㄦ埛鍒稿垪琛� 杩斿洖鍩虹瀵硅薄
- * @param start
- * @param count
- * @param uid
- * @return
- */
- public List<UserSystemCoupon> getUserCouponList(long start, int count, Long uid);
-
- /**
- * 鏌ヨ鐢ㄦ埛鍒稿垪琛� 杩斿洖VO瀵硅薄
- * @param start
- * @param count
- * @param uid
- * @return
- */
- public List<UserSystemCouponVO> getUserCouponVOList(long start, int count, Long uid, boolean changeJump ) throws UserSystemCouponException, Exception;
-
- /**
- * 缁熻鏁伴噺
- * @param uid
- * @return
- */
- public long countUserCouponList(Long uid);
-
- /**
- * 鍒窱D淇℃伅鏌ヨ鐢ㄦ埛鎷ユ湁鍒�
- * @param uid
- * @param couponList
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public List<UserSystemCouponVO> getEnableListByCouponId(Long uid, Integer activated, List<SystemCoupon> couponList)
- throws UserSystemCouponException, Exception;
-
- /**
- * 鏌ヨ璁㈠崟浣跨敤鐩稿叧鍒�
- * @param uid
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public List<UserSystemCouponVO> getOrderCouponList(Long uid) throws UserSystemCouponException, Exception;
-
- /**
- * 鏌ヨ鍟嗗搧浣跨敤鐩稿叧鍒�
- * @param uid
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public List<UserSystemCouponVO> getGoodsCouponList(Long uid, Long auctionId) throws UserSystemCouponException, Exception;
-
- /**
- * 鏇存柊鍒镐娇鐢ㄨ褰�
- * @param uid
- * @param id
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public void useGoodsCoupon(Long uid, Long id, Long goodId, Integer sourceType) throws UserSystemCouponException, Exception;
-
-
- /**
- * 鏇存柊鍒镐娇鐢ㄨ褰�
- * @param uid
- * @param id
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType, AcceptData acceptData) throws UserSystemCouponException, Exception;
-
- /**
- * 鏍规嵁璁㈠崟鍙疯幏鍙栧鍔卞埜浣跨敤杩涘害
- * @param orderNo
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public UserSystemCouponRecordVO getRewardCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
-
- /**
- * 鏄惁瀛樺湪濂栧姳鍒�
- * @param uid
- * @return
- */
- public boolean hasRewardCoupon(Long uid);
-
- /**
- * 鏍规嵁璁㈠崟鍙疯幏鍙栧厤鍗曞埜浣跨敤杩涘害
- * @param orderNo
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public UserSystemCouponRecordVO getFreeCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
-
- /**
- * 鏍规嵁璁㈠崟鏉ユ簮鏌ヨ
- * @param uid
- * @param source
- * @return
- */
- public List<UserSystemCoupon> getUserCouponBySource(Long uid, String source);
-
- /**
- * 鎻掑叆鍒镐俊鎭�
- * @param uid
- * @param couponType
- * @param source 鏉ユ簮
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public UserSystemCoupon insertUserCoupon(Long uid, String couponType, String source, BigDecimal percent,Boolean needNotify) throws UserSystemCouponException, Exception;
-
-
- /**
- * 閫�鍥炲埜
- * @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
- * @param source
- * @return
- */
- public int countTodatyUserCouponBySource(Long uid, String source);
-
- /**
- * 闅忔満鐢熸垚濂栧姳鍒�
- * @param num
- * @param uid
- * @param source
- * @throws Exception
- */
- public void randomRewardCoupon(int num, Long uid, String source) throws Exception;
-
-
-
-
- /**
- * 绯荤粺璧犻�佸鍔卞埜
- * @param num
- * @param uid
- * @param source
- * @throws Exception
- */
- public void systemGiveRewardCoupon(Long uid,int num,String orderId,Integer orderType,String reason) throws Exception;
-
-
-
-
-
- /**
- * 娣诲姞鍒�
- * @param uid
- * @param couponType
- * @param source
- * @throws UserSystemCouponException
- */
- public void exchangeCoupon(Long uid, String couponType, String source,
- BigDecimal percent) throws UserSystemCouponException, Exception;
-
-
- /**
- * 鍒稿垪琛� 1.6.5
- * @param start
- * @param count
- * @param uid
- * @return
- * @throws UserSystemCouponException
- * @throws Exception
- */
- public List<UserSystemCouponVO> getCouponList(AcceptData acceptData, long start, int count, Long uid) throws UserSystemCouponException, Exception;
-
-
- /**
- * 璧犻�佸埜鐢熸垚鍙d护
- * @param uid
- * @param id
- * @return
- * @throws UserSystemCouponException
- */
- public UserSystemCouponVO giveCoupon(Long uid, Long id) throws UserSystemCouponException;
-
-
- /**
- * 璧犻�侀��鍥�
- * @param id
- */
- 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);
-
- /**
- * 鏇存柊鐢ㄦ埛杩囨湡鍒�
- * @param uid
- */
- public void updateInvalidSate(Long uid);
-
- /*
- * 璧犻�佸埜
- */
- public void sendBackGiveUser(Long uid);
-
- /**
- * 缁熻鍙娇鐢ㄧ殑鍏嶅崟鍒�
- * @param uid
- * @return
- */
- public long countUsableFreeCouponForBuy(Long uid);
-
- /**
- * 缁熻鍙娇鐢ㄧ殑濂栧姳鍒�
- * @param uid
- * @return
- */
- public long countUsableRewardCoupon(Long uid);
-
- /**
- * 鏌ヨ鍏嶅埜鏁伴噺
- * @param uid
- * @param type
- * @return
- */
- public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type);
-
- /**
- * 婵�娲诲厤鍗曞埜---璁㈠崟宸插埌璐� 瑙﹀彂婵�娲诲厤鍗曞埜
- * @param uid
- */
- public void triggerFreeCouponActivate(Long uid, String orderNo, Integer source);
-
- /**
- * 閫�鍥炲埜
- * @param giveid
- */
- public void sendBackByGiveId(Long giveid);
-
-}
+package com.yeshi.fanli.service.inter.user;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import com.yeshi.fanli.entity.accept.AcceptData;
+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.entity.system.SystemCoupon.CouponTypeEnum;
+import com.yeshi.fanli.exception.user.UserSystemCouponException;
+import com.yeshi.fanli.vo.user.UserSystemCouponRecordVO;
+import com.yeshi.fanli.vo.user.UserSystemCouponVO;
+
+public interface UserSystemCouponService {
+
+ public int insertSelective(UserSystemCoupon record);
+
+ public UserSystemCoupon selectByPrimaryKey(Long id);
+
+ public int updateByPrimaryKeySelective(UserSystemCoupon record);
+
+ public int updateByPrimaryKey(UserSystemCoupon record);
+
+ /**
+ * 鏌ヨ鐢ㄦ埛鍒稿垪琛� 杩斿洖鍩虹瀵硅薄
+ * @param start
+ * @param count
+ * @param uid
+ * @return
+ */
+ public List<UserSystemCoupon> getUserCouponList(long start, int count, Long uid);
+
+ /**
+ * 鏌ヨ鐢ㄦ埛鍒稿垪琛� 杩斿洖VO瀵硅薄
+ * @param start
+ * @param count
+ * @param uid
+ * @return
+ */
+ public List<UserSystemCouponVO> getUserCouponVOList(long start, int count, Long uid, boolean changeJump ) throws UserSystemCouponException, Exception;
+
+ /**
+ * 缁熻鏁伴噺
+ * @param uid
+ * @return
+ */
+ public long countUserCouponList(Long uid);
+
+ /**
+ * 鍒窱D淇℃伅鏌ヨ鐢ㄦ埛鎷ユ湁鍒�
+ * @param uid
+ * @param couponList
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public List<UserSystemCouponVO> getEnableListByCouponId(Long uid, Integer activated, List<SystemCoupon> couponList)
+ throws UserSystemCouponException, Exception;
+
+ /**
+ * 鏌ヨ璁㈠崟浣跨敤鐩稿叧鍒�
+ * @param uid
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public List<UserSystemCouponVO> getOrderCouponList(Long uid) throws UserSystemCouponException, Exception;
+
+
+ /**
+ * 鏇存柊鍒镐娇鐢ㄨ褰�
+ * @param uid
+ * @param id
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public void useGoodsCoupon(Long uid, Long id, Long goodId, Integer sourceType) throws UserSystemCouponException, Exception;
+
+
+ /**
+ * 鏇存柊鍒镐娇鐢ㄨ褰�
+ * @param uid
+ * @param id
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public void useOrderCoupon(Long uid, Long id, String orderNo, Integer sourceType, AcceptData acceptData) throws UserSystemCouponException, Exception;
+
+ /**
+ * 鏍规嵁璁㈠崟鍙疯幏鍙栧鍔卞埜浣跨敤杩涘害
+ * @param orderNo
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public UserSystemCouponRecordVO getRewardCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
+
+ /**
+ * 鏄惁瀛樺湪濂栧姳鍒�
+ * @param uid
+ * @return
+ */
+ public boolean hasRewardCoupon(Long uid);
+
+ /**
+ * 鏍规嵁璁㈠崟鍙疯幏鍙栧厤鍗曞埜浣跨敤杩涘害
+ * @param orderNo
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public UserSystemCouponRecordVO getFreeCouponRecord(String orderNo, Integer sourceType) throws UserSystemCouponException, Exception;
+
+ /**
+ * 鏍规嵁璁㈠崟鏉ユ簮鏌ヨ
+ * @param uid
+ * @param source
+ * @return
+ */
+ public List<UserSystemCoupon> getUserCouponBySource(Long uid, String source);
+
+
+
+ /**
+ * 閫�鍥炲埜
+ * @param uid
+ */
+ public void sendBackTimeOutCoupon(Long uid);
+
+
+ /**
+ * 鏇存柊鍒歌褰� 鈥斺�斿尮閰嶅厤鍗曞埜
+ * @param uid 鐢ㄦ埛id
+ * @param orderNo 璁㈠崟鍙�
+ * @param payment 浠樻閲戦
+ * @param auctionId 鍟嗗搧id(娣樺疂)
+ * @return 鍏嶅崟鎴愬姛 true
+ * @throws Exception
+ */
+ public boolean updateCouponRecordUsed(Long uid, String orderNo, BigDecimal payment,
+ String auctionId , Integer sourceType) throws Exception;
+
+ /**
+ * 璁㈠崟閫�娆炬洿鏂� 鍒歌褰曠姸鎬佸苟閫�鍥炲埜
+ * @param orderNo
+ */
+ public void updateStateByDrawback(String orderNo, Integer sourceType) throws Exception;
+
+ /**
+ * 绾㈠寘鍒拌处 -- 鏇存柊鍒镐娇鐢ㄧ姸鎬� -鏀逛负浣跨敤鎴愬姛
+ * @param orderNo
+ * @throws Exception
+ */
+ public void updateStateByArrivalAccount(String orderNo, Integer sourceType) throws Exception;
+
+ /**
+ * 缁熻浠婃棩鎶藉涓殑鍒告暟閲�
+ * @param uid
+ * @param source
+ * @return
+ */
+ public int countTodatyUserCouponBySource(Long uid, String source);
+
+
+ /**
+ * 鍒稿垪琛� 1.6.5
+ * @param start
+ * @param count
+ * @param uid
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public List<UserSystemCouponVO> getCouponList(AcceptData acceptData, long start, int count, Long uid) throws UserSystemCouponException, Exception;
+
+
+ /**
+ * 璧犻�佸埜鐢熸垚鍙d护
+ * @param uid
+ * @param id
+ * @return
+ * @throws UserSystemCouponException
+ */
+ public UserSystemCouponVO giveCoupon(Long uid, Long id) throws UserSystemCouponException;
+
+
+ /**
+ * 璧犻�侀��鍥�
+ * @param id
+ */
+ 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 getValidRebateCoupon(Long uid);
+
+
+ /**
+ * 鏌ヨ1.6.5涔嬪墠鐨� 涓嶇瓑浜�35%
+ * @param uid
+ * @return
+ */
+ public List<UserSystemCouponVO> listIncludeNotExchange(Long uid) throws Exception;
+
+ public long countCouponOld(Long uid);
+
+ /**
+ * 鏇存柊鐢ㄦ埛杩囨湡鍒�
+ * @param uid
+ */
+ public void updateInvalidSate(Long uid);
+
+ /*
+ * 璧犻�佸埜
+ */
+ public void sendBackGiveUser(Long uid);
+
+ /**
+ * 缁熻鍙娇鐢ㄧ殑鍏嶅崟鍒�
+ * @param uid
+ * @return
+ */
+ public long countUsableFreeCouponForBuy(Long uid);
+
+ /**
+ * 缁熻鍙娇鐢ㄧ殑濂栧姳鍒�
+ * @param uid
+ * @return
+ */
+ public long countUsableRewardCoupon(Long uid);
+
+ /**
+ * 鏌ヨ鍏嶅埜鏁伴噺
+ * @param uid
+ * @param type
+ * @return
+ */
+ public List<UserSystemCoupon> getFreeCouponByType(Long uid, String type);
+
+ /**
+ * 婵�娲诲厤鍗曞埜---璁㈠崟宸插埌璐� 瑙﹀彂婵�娲诲厤鍗曞埜
+ * @param uid
+ */
+ public void triggerFreeCouponActivate(Long uid, String orderNo, Integer source);
+
+ /**
+ * 閫�鍥炲埜
+ * @param giveid
+ */
+ public void sendBackByGiveId(Long giveid);
+
+ /**
+ * 缁熻璧犻�佸厤鍗曞埜
+ * @param uid
+ * @return
+ */
+ public long countGiveFreeCoupon(Long uid);
+
+
+ /**
+ * 鍏嶅崟鍒歌幏寰�
+ * @param uid
+ * @param typeEnum 绫诲瀷
+ * @param source 鏉ユ簮
+ * @param num 鏁伴噺
+ * @param notify 鏄惁鍙戦�佹秷鎭�
+ * @return
+ * @throws UserSystemCouponException
+ */
+ public UserSystemCoupon freeCouponWin(Long uid, CouponTypeEnum typeEnum, String source, int num, boolean notify)
+ throws UserSystemCouponException, Exception;
+
+ /**
+ * 濂栧姳鍒稿埜鑾峰緱
+ * @param uid
+ * @param typeEnum
+ * @param source
+ * @param num
+ * @param notify
+ * @param percent
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public UserSystemCoupon rewardCouponWin(Long uid, String source, int num, boolean notify,
+ BigDecimal percent) throws UserSystemCouponException, Exception;
+
+ /**
+ * 鍏嶅崟鍒歌幏寰�
+ * @param uid
+ * @param typeEnum
+ * @param source
+ * @param num
+ * @param notify
+ * @param expiryDay
+ * @return
+ * @throws UserSystemCouponException
+ * @throws Exception
+ */
+ public UserSystemCoupon freeCouponWinBySystem(Long uid, CouponTypeEnum typeEnum, String source, int num, boolean notify,
+ Integer expiryDay, Integer activated) throws UserSystemCouponException, Exception;
+
+ /**
+ * 鑾峰彇鏈夋晥鍏嶅崟鍒稿垪琛�
+ * @param uid
+ * @return
+ */
+ public List<UserSystemCouponVO> getFreeCouponList(Long uid);
+
+ public List<UserSystemCouponVO> getGoodsCouponList(Long uid, String auctionId) throws UserSystemCouponException, Exception;
+
+}
--
Gitblit v1.8.0