From 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期六, 09 五月 2020 21:41:27 +0800
Subject: [PATCH] 2.1需求

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java |   74 ++++++++++++++++++++++++++++--------
 1 files changed, 57 insertions(+), 17 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 00f0d1e..50a8f3f 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
@@ -28,7 +28,6 @@
 	 */
 	void effective(UserInfo worker);
 
-
 	/**
 	 * 涓�绾ф煡璇�
 	 * 
@@ -70,8 +69,6 @@
 	public List<ThreeSale> listSuperiorQuery(long start, int count, Integer state, Long uid);
 
 	public long countSuperiorQuery(Integer state, Long uid);
-
-
 
 	/**
 	 * 鍓嶇鏌ヨ涓�绾ч槦鍛�
@@ -130,7 +127,6 @@
 	 */
 	public int getSuccessRelationshipNum(Long uid);
 
-
 	/**
 	 * 鏍规嵁閭�璇疯�呮煡璇㈠叧绯�
 	 * 
@@ -147,22 +143,21 @@
 	 * @throws ThreeSaleException
 	 */
 	public void bindInviteRelationship(Long workerId, Long bossId) throws ThreeSaleException;
-	
+
 	/**
 	* 鏍规嵁涓嬬骇鏌ユ壘瀵硅薄
 	 * @param workerId
 	 * @return
 	 */
 	public ThreeSale selectByWorkerId(Long workerId);
-	
-	
+
 	/**
 	 * 鏌ヨ鏈�杩戜竴鏉℃暟鎹紙鏍规嵁涓嬬骇鐢ㄦ埛ID涓庣姸鎬侊級
 	 * @param workerId
 	 * @param state
 	 * @return
 	 */
-	public ThreeSale selectLatestByWorkerIdAndState(Long workerId,int state);
+	public ThreeSale selectLatestByWorkerIdAndState(Long workerId, int state);
 
 	/**
 	 * 鏃堕棿娈靛憿 閭�璇锋垚鍔熶俊鎭�
@@ -192,7 +187,30 @@
 	 * @return
 	 */
 	public List<ThreeSale> listSecondTeam(long start, int count, Long uid);
+	
+	/**
+	 * 涓�绾ч槦鍛�
+	 * @param start
+	 * @param count
+	 * @param uid
+	 * @param state
+	 * @return
+	 */
+	public List<ThreeSale> listFirstTeam(long start, int count, Long uid, List<Long> listId);
 
+	/**
+	 * 浜岀骇闃熷憳
+	 * @param start
+	 * @param count
+	 * @param uid
+	 * @param state
+	 * @return
+	 */
+	public List<ThreeSale> listSecondTeam(long start, int count, Long uid, List<Long> listId);
+
+	public long countFirstTeam(Long uid);
+
+	public long countSecondTeam(Long uid);
 	
 	/**
 	 * 缁熻鐩存帴绮変笣鏁伴噺
@@ -200,15 +218,15 @@
 	 * @param uid
 	 * @return
 	 */
-	public long countFirstTeam(Long uid);
+	public long countFirstTeam(Long uid, List<Long> listId);
 
 	/**
 	 * 缁熻闂存帴绮変笣鏁伴噺
 	 * @param uid
 	 * @return
 	 */
-	public long countSecondTeam(Long uid);
-	
+	public long countSecondTeam(Long uid, List<Long> listId);
+
 	/**
 	 * 鏌ヨ閭�璇峰叧绯� 鏃堕棿绛涢��
 	 * @param workerId 涓嬬骇id
@@ -224,7 +242,6 @@
 	 */
 	public void inviteSeparate(Long workerId, Long bossId);
 
-	
 	/*
 	 * 璇ラ槦鍛� 鍦ㄩ槦涓帓绗嚑
 	 */
@@ -245,8 +262,7 @@
 	 * @return
 	 */
 	public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
-	
-	
+
 	/**
 	 * 鑾峰彇涓婂嚑绾ч個璇蜂汉
 	 * @Title: getMyBossDeepList
@@ -257,9 +273,8 @@
 	 * List<ThreeSale> 杩斿洖绫诲瀷
 	 * @throws
 	 */
-	public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
-	
-	
+	public List<ThreeSale> getMyBossDeepList(Long uid, int deep);
+
 	/**
 	 * 鑾峰彇涓婄骇鍒楄〃
 	 * @Title: getMyBossDeepList
@@ -271,4 +286,29 @@
 	 */
 	public List<ThreeSale> getMyBossDeepList(Long uid);
 
+	/**
+	 * 鑾峰彇鐢ㄦ埛鐨勯《绾oss
+	 * @Title: getTopBoss
+	 * @Description: 
+	 * @param uid
+	 * @return 
+	 * Long 杩斿洖绫诲瀷
+	 * @throws
+	 */
+	public Long getTopBoss(Long uid);
+
+	/**
+	 * 鏍规棩鏈熺被鍨嬭繘琛岀粺璁$洿鎺�
+	 */
+	public long countFirstTeamByDate(Long uid, int dayType);
+
+	/**
+	 *  鏍规棩鏈熺被鍨嬭繘琛岀粺璁¢棿鎺�
+	 * @param uid
+	 * @param dayType
+	 * @return
+	 */
+	public long countSecondTeamByDate(Long uid, int dayType);
+
+
 }

--
Gitblit v1.8.0