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/service/inter/order/HongBaoV2Service.java |  407 +++++++++++++++++++++++++++++----------------------------
 1 files changed, 208 insertions(+), 199 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java
index 2e52482..7685e2a 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/HongBaoV2Service.java
@@ -1,199 +1,208 @@
-package com.yeshi.fanli.service.inter.order;
-
-import java.math.BigDecimal;
-import java.util.Date;
-import java.util.List;
-
-import com.yeshi.fanli.dto.HongBaoDTO;
-import com.yeshi.fanli.dto.order.HongBaoAddResult;
-import com.yeshi.fanli.entity.bus.user.HongBaoV2;
-import com.yeshi.fanli.entity.order.CommonOrder;
-import com.yeshi.fanli.exception.order.HongBaoException;
-import com.yeshi.fanli.exception.user.UserAccountException;
-
-public interface HongBaoV2Service {
-
-	public int insert(HongBaoV2 record);
-
-	public int insertSelective(HongBaoV2 record);
-
-	public int updateByPrimaryKey(HongBaoV2 record);
-
-	public int updateByPrimaryKeySelective(HongBaoV2 record);
-
-	public int deleteByPrimaryKey(Long id);
-
-	public HongBaoV2 selectByPrimaryKey(Long id);
-
-	/**
-	 * 娣诲姞绾㈠寘
-	 * 
-	 * @param commonOrder
-	 *            璁㈠崟瀵硅薄
-	 * @param type
-	 *            绫诲瀷
-	 * @return 0-鏈坊鍔犱篃鏈洿鏂� 1-鍙坊鍔� 2-鍙洿鏂� 12-鏈夋坊鍔犱篃鏈夋洿鏂�
-	 * @throws HongBaoException
-	 */
-	public HongBaoAddResult addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException,UserAccountException ;
-
-	/**
-	 * 濂栭噾鍒楄〃锛�1.4.9涔嬪墠鐨勭増鏈級
-	 * 
-	 * @param uid
-	 * @param page
-	 * @param pageSize
-	 * @return
-	 */
-	public List<HongBaoDTO> listJiangJinByUid(Long uid, int page, int pageSize);
-
-	/**
-	 * 濂栭噾鏁伴噺锛�1.4.9涔嬪墠鐨勭増鏈級
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	public long countJiangJinByUid(Long uid);
-
-	/**
-	 * 鎬诲叡鐨勬彁鎴愰噾棰�
-	 * 
-	 * @param uid
-	 * @return
-	 */
-
-	BigDecimal getTotalTiChengMoney(Long uid);
-
-	/**
-	 * 鑾峰彇鎬荤殑鎻愭垚绗旀暟
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	int getTotalTiChengCount(Long uid);
-
-	/**
-	 * 鑾峰彇杩樻湭鍒拌处鐨勬彁鎴愰噾棰�
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	BigDecimal getUnGetTiChengMoney(Long uid);
-
-	/**
-	 * 鑾峰彇鎬诲叡杩斿埄閲戦
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	BigDecimal getTotalFanLiMoney(Long uid);
-
-	/**
-	 * 鑾峰彇杩樻湭鍒拌处鐨勯噾棰�
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	BigDecimal getUnRecievedFanLiMoney(Long uid);
-
-	/**
-	 * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁鍒涘缓鏃堕棿)
-	 * 
-	 * @param uid
-	 * @param minDate
-	 * @param maxDate
-	 * @return
-	 */
-	BigDecimal getUnRecievedMoneyWithCreateTime(Long uid, Date minDate, Date maxDate);
-
-	/**
-	 * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁棰勮棰嗗彇鏃堕棿)
-	 * 
-	 * @param uid
-	 * @param minDate
-	 * @param maxDate
-	 * @return
-	 */
-	BigDecimal getUnRecievedMoneyWithPreGetTime(Long uid, Date minDate, Date maxDate);
-
-	/**
-	 * 璁$畻璧勯噾
-	 * 
-	 * @param uid
-	 * @param state
-	 * @return
-	 */
-	BigDecimal computeMoneyByUidAndState(Long uid, int state);
-
-	/**
-	 * 鏌ヨ瀛愮孩鍖�
-	 * 
-	 * @param id
-	 * @return
-	 */
-	public List<HongBaoV2> listChildrenById(Long id);
-
-	/**
-	 * 鏌ヨ瀛愮孩鍖�
-	 * 
-	 * @param idList
-	 * @return
-	 */
-	public List<HongBaoV2> listChildrenByIds(List<Long> idList);
-
-	/**
-	 * 鏈�杩�30澶╁唴浜х敓杩囧垎浜鍗曠殑鐢ㄦ埛
-	 * 
-	 * @return
-	 */
-	public List<Long> getUidByNear30DayShareSucceed();
-
-	/**
-	 * 璁╅個璇疯禋澶辨晥锛堟牴鎹笅绾х敤鎴稩D锛�
-	 * 
-	 * @param parentUid
-	 * @param beiZhu
-	 */
-	public void invalidInviteHongBaoByParentUid(Long parentUid, String beiZhu);
-
-	/**
-	 * 鏍规嵁鐢ㄦ埛ID锛屼氦鏄揑D鏌ヨ绾㈠寘淇℃伅
-	 * 
-	 * @param sourceType
-	 * @param uid
-	 * @param tradeIdList
-	 * @return
-	 */
-	public List<HongBaoV2> listBySourceTypeAndTradeIdListAndUid(int sourceType, long uid, List<String> tradeIdList);
-
-	/**
-	 * 鑾峰彇棣栨鏈夋晥鐨勭孩鍖咃紙鏍规嵁绫诲瀷涓庣敤鎴稩D锛�
-	 * 
-	 * @param typeList
-	 * @param uid
-	 * @return
-	 */
-	public HongBaoV2 getFirstValidHongBaoByTypeAndUid(List<Integer> typeList, Long uid);
-
-	/**
-	 * 鏍规嵁ID鎵归噺鏌ヨ
-	 * 
-	 * @param idList
-	 * @return
-	 */
-	public List<HongBaoV2> listByIds(List<Long> idList);
-
-	/**
-	 * 鏍规嵁浜ゆ槗id鏌ヨ绾㈠寘淇℃伅
-	 * @param tradeId
-	 * @return
-	 */
-	public List<HongBaoDTO> listByOrderTradeId(String tradeId);
-
-	/**
-	 * 鏌ヨ鐩存帴涓婄骇褰撴椂鑾峰緱绾㈠寘绛夌骇
-	 * @param pid
-	 * @return
-	 */
-	public Integer getDirectBossUrankByPid(Long pid);
-}
+package com.yeshi.fanli.service.inter.order;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.List;
+
+import com.yeshi.fanli.dto.HongBaoDTO;
+import com.yeshi.fanli.dto.order.HongBaoAddResult;
+import com.yeshi.fanli.entity.bus.user.HongBaoV2;
+import com.yeshi.fanli.entity.order.CommonOrder;
+import com.yeshi.fanli.exception.order.HongBaoException;
+import com.yeshi.fanli.exception.user.UserAccountException;
+import org.omg.CORBA.PUBLIC_MEMBER;
+
+public interface HongBaoV2Service {
+
+	public int insert(HongBaoV2 record);
+
+	public int insertSelective(HongBaoV2 record);
+
+	public int updateByPrimaryKey(HongBaoV2 record);
+
+	public int updateByPrimaryKeySelective(HongBaoV2 record);
+
+	public int deleteByPrimaryKey(Long id);
+
+	public HongBaoV2 selectByPrimaryKey(Long id);
+
+	/**
+	 * 娣诲姞绾㈠寘
+	 * 
+	 * @param commonOrder
+	 *            璁㈠崟瀵硅薄
+	 * @param type
+	 *            绫诲瀷
+	 * @return 0-鏈坊鍔犱篃鏈洿鏂� 1-鍙坊鍔� 2-鍙洿鏂� 12-鏈夋坊鍔犱篃鏈夋洿鏂�
+	 * @throws HongBaoException
+	 */
+	public HongBaoAddResult addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException,UserAccountException ;
+
+	/**
+	 * 濂栭噾鍒楄〃锛�1.4.9涔嬪墠鐨勭増鏈級
+	 * 
+	 * @param uid
+	 * @param page
+	 * @param pageSize
+	 * @return
+	 */
+	public List<HongBaoDTO> listJiangJinByUid(Long uid, int page, int pageSize);
+
+	/**
+	 * 濂栭噾鏁伴噺锛�1.4.9涔嬪墠鐨勭増鏈級
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	public long countJiangJinByUid(Long uid);
+
+	/**
+	 * 鎬诲叡鐨勬彁鎴愰噾棰�
+	 * 
+	 * @param uid
+	 * @return
+	 */
+
+	BigDecimal getTotalTiChengMoney(Long uid);
+
+	/**
+	 * 鑾峰彇鎬荤殑鎻愭垚绗旀暟
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	int getTotalTiChengCount(Long uid);
+
+	/**
+	 * 鑾峰彇杩樻湭鍒拌处鐨勬彁鎴愰噾棰�
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	BigDecimal getUnGetTiChengMoney(Long uid);
+
+	/**
+	 * 鑾峰彇鎬诲叡杩斿埄閲戦
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	BigDecimal getTotalFanLiMoney(Long uid);
+
+	/**
+	 * 鑾峰彇杩樻湭鍒拌处鐨勯噾棰�
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	BigDecimal getUnRecievedFanLiMoney(Long uid);
+
+	/**
+	 * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁鍒涘缓鏃堕棿)
+	 * 
+	 * @param uid
+	 * @param minDate
+	 * @param maxDate
+	 * @return
+	 */
+	BigDecimal getUnRecievedMoneyWithCreateTime(Long uid, Date minDate, Date maxDate);
+
+	/**
+	 * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁棰勮棰嗗彇鏃堕棿)
+	 * 
+	 * @param uid
+	 * @param minDate
+	 * @param maxDate
+	 * @return
+	 */
+	BigDecimal getUnRecievedMoneyWithPreGetTime(Long uid, Date minDate, Date maxDate);
+
+	/**
+	 * 璁$畻璧勯噾
+	 * 
+	 * @param uid
+	 * @param state
+	 * @return
+	 */
+	BigDecimal computeMoneyByUidAndState(Long uid, int state);
+
+	/**
+	 * 鏌ヨ瀛愮孩鍖�
+	 * 
+	 * @param id
+	 * @return
+	 */
+	public List<HongBaoV2> listChildrenById(Long id);
+
+	/**
+	 * 鏌ヨ瀛愮孩鍖�
+	 * 
+	 * @param idList
+	 * @return
+	 */
+	public List<HongBaoV2> listChildrenByIds(List<Long> idList);
+
+	/**
+	 * 鏈�杩�30澶╁唴浜х敓杩囧垎浜鍗曠殑鐢ㄦ埛
+	 * 
+	 * @return
+	 */
+	public List<Long> getUidByNear30DayShareSucceed();
+
+	/**
+	 * 璁╅個璇疯禋澶辨晥锛堟牴鎹笅绾х敤鎴稩D锛�
+	 * 
+	 * @param parentUid
+	 * @param beiZhu
+	 */
+	public void invalidInviteHongBaoByParentUid(Long parentUid, String beiZhu);
+
+	/**
+	 * 鏍规嵁鐢ㄦ埛ID锛屼氦鏄揑D鏌ヨ绾㈠寘淇℃伅
+	 * 
+	 * @param sourceType
+	 * @param uid
+	 * @param tradeIdList
+	 * @return
+	 */
+	public List<HongBaoV2> listBySourceTypeAndTradeIdListAndUid(int sourceType, long uid, List<String> tradeIdList);
+
+	/**
+	 * 鑾峰彇棣栨鏈夋晥鐨勭孩鍖咃紙鏍规嵁绫诲瀷涓庣敤鎴稩D锛�
+	 * 
+	 * @param typeList
+	 * @param uid
+	 * @return
+	 */
+	public HongBaoV2 getFirstValidHongBaoByTypeAndUid(List<Integer> typeList, Long uid);
+
+	/**
+	 * 鏍规嵁ID鎵归噺鏌ヨ
+	 * 
+	 * @param idList
+	 * @return
+	 */
+	public List<HongBaoV2> listByIds(List<Long> idList);
+
+	/**
+	 * 鏍规嵁浜ゆ槗id鏌ヨ绾㈠寘淇℃伅
+	 * @param tradeId
+	 * @return
+	 */
+	public List<HongBaoDTO> listByOrderTradeId(String tradeId);
+
+	/**
+	 * 鏌ヨ鐩存帴涓婄骇褰撴椂鑾峰緱绾㈠寘绛夌骇
+	 * @param pid
+	 * @return
+	 */
+	public Integer getDirectBossUrankByPid(Long pid);
+
+
+	/**
+	 * 璁剧疆绾㈠寘宸查鍙�
+	 * @param uid
+	 * @param preGetTime
+	 */
+	public void setHongBaoRecieved(Long uid,List<Integer> typeList, Date preGetTime);
+}

--
Gitblit v1.8.0