From bb133d1e82c337da646e90740b82584b82f9a0e6 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期六, 18 四月 2020 10:03:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java |  129 ++++++++++++++++++++++++++++++++----------
 1 files changed, 97 insertions(+), 32 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
index 6cdf6b5..94c6792 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
@@ -19,7 +19,7 @@
 	 */
 	UserInfo getBoss(long uid);
 
-	void bind(UserInfo invitee, UserInfo inviter) throws ThreeSaleException;
+	void bind(UserInfo worker, UserInfo boss) throws ThreeSaleException;
 
 	/**
 	 * 閭�璇峰叧绯荤敓鏁�
@@ -68,29 +68,7 @@
 	 */
 	public int deleteByPrimaryKey(Long id);
 
-	/**
-	 * 闀挎椂闂存湭閭�璇锋垚鍔熺敤鎴�
-	 * 
-	 * @param daysNum
-	 * @return
-	 */
-	public List<Long> queryLongTimeFailed(int daysNum);
 
-	/**
-	 * 闀挎椂闂� 閭�璇锋垚鍔熺敤鎴�
-	 * 
-	 * @param daysNum
-	 * @return
-	 */
-	public List<ThreeSale> queryLongTimeSuccess(int daysNum);
-
-	/**
-	 * 璁剧疆瀵瑰簲閭�璇疯繃鏈�
-	 * 
-	 * @param list
-	 * @return
-	 */
-	public int updateExpire(List<Long> list);
 
 	/**
 	 * 涓�绾ф煡璇�
@@ -212,14 +190,6 @@
 	 */
 	public int getSuccessRelationshipNum(Long uid);
 
-	/**
-	 * 閭�璇风爜鐢熸垚涓婁笅绾у叧绯�
-	 * 
-	 * @param invitee
-	 * @param inviter
-	 * @throws ThreeSaleException
-	 */
-	public void bindRelationshipByInviteCode(UserInfo invitee, UserInfo inviter) throws ThreeSaleException;
 
 	/**
 	 * 缁熻閭�璇锋垚鍔熼槦鍛樻暟閲�
@@ -244,7 +214,7 @@
 	 * @param threeSaleOld
 	 * @throws ThreeSaleException
 	 */
-	public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) throws ThreeSaleException;
+	public void bindInviteRelationship(Long workerId, Long bossId) throws ThreeSaleException;
 	
 	/**
 	* 鏍规嵁涓嬬骇鏌ユ壘瀵硅薄
@@ -299,4 +269,99 @@
 	 */
 	public ThreeSale getByWorkerIdAndTime(Long workerId, long time);
 
+	/**
+	 * 閭�璇峰叧绯昏劚绂�
+	 * @param workerId
+	 * @param bossId
+	 */
+	public void inviteSeparate(Long workerId, Long bossId);
+
+	
+	/*
+	 * 璇ラ槦鍛� 鍦ㄩ槦涓帓绗嚑
+	 */
+	public long getTeamOrderNumByWorkerId(Long workerId);
+
+	/**
+	 * 鏌ヨ鏈�杩戝叧绯� - 鏈夋晥鍒欎紭鍏�
+	 * @param bossId
+	 * @param workerId
+	 * @return
+	 */
+	public ThreeSale getNearRelationByBossIdAndWorkerId(Long bossId, Long workerId);
+
+	/**
+	 * 鏍规嵁鏃堕棿绛涢�夊嚭鏈夋晥绮変笣
+	 * @param bossId
+	 * @param limitTime
+	 * @return
+	 */
+	public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
+	
+	
+	/**
+	 * 鑾峰彇涓婂嚑绾ч個璇蜂汉
+	 * @Title: getMyBossDeepList
+	 * @Description: 
+	 * @param uid
+	 * @param deep 涓奷eep绾�
+	 * @return 
+	 * List<ThreeSale> 杩斿洖绫诲瀷
+	 * @throws
+	 */
+	public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
+	
+	
+	/**
+	 * 鑾峰彇涓婄骇鍒楄〃
+	 * @Title: getMyBossDeepList
+	 * @Description: 
+	 * @param uid
+	 * @return 
+	 * List<ThreeSale> 杩斿洖绫诲瀷
+	 * @throws
+	 */
+	public List<ThreeSale> getMyBossDeepList(Long uid);
+
+	/**
+	 * 鏌ヨ鏈垹闄ょ増-绮変笣涓�绾�
+	 * @param start
+	 * @param count
+	 * @param uid
+	 * @return
+	 */
+	public List<ThreeSale> listFirstTeamByUndeleted(long start, int count, Long uid);
+
+	/**
+	 * 缁熻绮変笣涓�绾�
+	 * @param uid
+	 * @return
+	 */
+	public long countFirstTeamByUndeleted(Long uid);
+
+	/**
+	 * 鏌ヨ鏈垹闄ょ増-绮変笣浜岀骇
+	 * @param start
+	 * @param count
+	 * @param uid
+	 * @return
+	 */
+	public List<ThreeSale> listSecondTeamByUndeleted(long start, int count, Long uid);
+
+	/**
+	 * 缁熻绮変笣浜岀骇
+	 * @param uid
+	 * @return
+	 */
+	public long countSecondTeamByUndeleted(Long uid);
+
+	
+	/**
+	 * 鍒犻櫎鑴辩闃熷憳
+	 * @param id
+	 * @param uid
+	 * @param tid
+	 */
+	public void remvoeBreak(Long id, Long uid, Long tid);
+
 }

--
Gitblit v1.8.0