From 744594ef1a2f530fc3e86ea9dc48b62247f79420 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 19 五月 2020 17:13:23 +0800
Subject: [PATCH] 饿了么绘图,添加口碑

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java |  168 +++++++++++++++++++++++++++-----------------------------
 1 files changed, 81 insertions(+), 87 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 384b1ba..dc79490 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
@@ -1,5 +1,6 @@
 package com.yeshi.fanli.service.inter.user.invite;
 
+import java.util.Date;
 import java.util.List;
 
 import com.yeshi.fanli.entity.bus.user.ThreeSale;
@@ -27,24 +28,6 @@
 	 * @param worker
 	 */
 	void effective(UserInfo worker);
-
-	// 鑾峰彇涓�绾х敤鎴锋暟閲�
-	long getFirstUsersCount(Long uid);
-
-	// 鑾峰彇浜岀骇鐢ㄦ埛鏁伴噺
-	long getSecondUsersCount(Long uid);
-
-
-
-	/**
-	 * 鍒犻櫎閭�璇峰叧绯籭d
-	 * 
-	 * @param id
-	 * @return
-	 */
-	public int deleteByPrimaryKey(Long id);
-
-
 
 	/**
 	 * 涓�绾ф煡璇�
@@ -88,27 +71,6 @@
 
 	public long countSuperiorQuery(Integer state, Long uid);
 
-
-	/**
-	 * 缁熻鎵�鏈変竴绾ч槦鍛�
-	 * 
-	 * @param uid
-	 * @param state
-	 *            鐘舵�侊紝鍊� 涓虹┖鏃跺垯缁熻鎵�鏈�
-	 * @return
-	 */
-	public long countFirstTeam(Long uid, Integer state);
-
-	/**
-	 * 缁熻浜岀骇闃熷憳
-	 * 
-	 * @param uid
-	 * @param state
-	 *            鐘舵�侊紝鍊� 涓虹┖鏃跺垯缁熻鎵�鏈�
-	 * @return
-	 */
-	public long countSecondTeam(Long uid, Integer state);
-
 	/**
 	 * 鍓嶇鏌ヨ涓�绾ч槦鍛�
 	 * 
@@ -117,7 +79,7 @@
 	 * @param uid
 	 * @return
 	 */
-	public JSONObject getMyFirstTeam(long start, int count, Long uid, Integer state);
+	public JSONObject getMyFirstTeam(long start, int count, Long uid);
 
 	/**
 	 * 鍓嶇鏌ヨ浜岀骇闃熷憳
@@ -127,7 +89,7 @@
 	 * @param uid
 	 * @return
 	 */
-	public JSONObject getMySecondTeam(long start, int count, Long uid, Integer state);
+	public JSONObject getMySecondTeam(long start, int count, Long uid);
 
 	/**
 	 * 鑾峰彇涓婄骇
@@ -166,15 +128,6 @@
 	 */
 	public int getSuccessRelationshipNum(Long uid);
 
-
-	/**
-	 * 缁熻閭�璇锋垚鍔熼槦鍛樻暟閲�
-	 * 
-	 * @param uid
-	 * @return
-	 */
-	public long countSuccessFirstTeam(Long uid);
-
 	/**
 	 * 鏍规嵁閭�璇疯�呮煡璇㈠叧绯�
 	 * 
@@ -191,22 +144,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);
 
 	/**
 	 * 鏃堕棿娈靛憿 閭�璇锋垚鍔熶俊鎭�
@@ -225,7 +177,7 @@
 	 * @param state
 	 * @return
 	 */
-	public List<ThreeSale> listFirstTeam(long start, int count, Long uid, Integer state);
+	public List<ThreeSale> listFirstTeam(long start, int count, Long uid);
 
 	/**
 	 * 浜岀骇闃熷憳
@@ -235,7 +187,46 @@
 	 * @param state
 	 * @return
 	 */
-	public List<ThreeSale> listSecondTeam(long start, int count, Long uid, Integer state);
+	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);
+	
+	/**
+	 * 缁熻鐩存帴绮変笣鏁伴噺
+	 * 
+	 * @param uid
+	 * @return
+	 */
+	public long countFirstTeam(Long uid, List<Long> listId);
+
+	/**
+	 * 缁熻闂存帴绮変笣鏁伴噺
+	 * @param uid
+	 * @return
+	 */
+	public long countSecondTeam(Long uid, List<Long> listId);
 
 	/**
 	 * 鏌ヨ閭�璇峰叧绯� 鏃堕棿绛涢��
@@ -252,7 +243,6 @@
 	 */
 	public void inviteSeparate(Long workerId, Long bossId);
 
-	
 	/*
 	 * 璇ラ槦鍛� 鍦ㄩ槦涓帓绗嚑
 	 */
@@ -273,8 +263,7 @@
 	 * @return
 	 */
 	public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
-	
-	
+
 	/**
 	 * 鑾峰彇涓婂嚑绾ч個璇蜂汉
 	 * @Title: getMyBossDeepList
@@ -285,9 +274,8 @@
 	 * List<ThreeSale> 杩斿洖绫诲瀷
 	 * @throws
 	 */
-	public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
-	
-	
+	public List<ThreeSale> getMyBossDeepList(Long uid, int deep);
+
 	/**
 	 * 鑾峰彇涓婄骇鍒楄〃
 	 * @Title: getMyBossDeepList
@@ -300,44 +288,50 @@
 	public List<ThreeSale> getMyBossDeepList(Long uid);
 
 	/**
-	 * 鏌ヨ鏈垹闄ょ増-绮変笣涓�绾�
-	 * @param start
-	 * @param count
+	 * 鑾峰彇鐢ㄦ埛鐨勯《绾oss
+	 * @Title: getTopBoss
+	 * @Description: 
 	 * @param uid
-	 * @return
+	 * @return 
+	 * Long 杩斿洖绫诲瀷
+	 * @throws
 	 */
-	public List<ThreeSale> listFirstTeamByUndeleted(long start, int count, Long uid);
+	public Long getTopBoss(Long uid);
+	
+	
+	/**
+	 * 鏌ヨ鍒楄〃
+	 * @Title: list
+	 * @Description: 
+	 * @param page
+	 * @param pageSize
+	 * @return 
+	 * List<ThreeSale> 杩斿洖绫诲瀷
+	 * @throws
+	 */
+	public List<ThreeSale> listAll(Date minTime,Date maxTime, int page,int pageSize);
+	
+	public long countAll(Date minTime,Date maxTime);
 
 	/**
-	 * 缁熻绮変笣涓�绾�
-	 * @param uid
-	 * @return
+	 * 鏍规棩鏈熺被鍨嬭繘琛岀粺璁$洿鎺�
 	 */
-	public long countFirstTeamByUndeleted(Long uid);
+	public long countFirstTeamByDate(Long uid, int dayType);
 
 	/**
-	 * 鏌ヨ鏈垹闄ょ増-绮変笣浜岀骇
-	 * @param start
-	 * @param count
+	 *  鏍规棩鏈熺被鍨嬭繘琛岀粺璁¢棿鎺�
 	 * @param uid
+	 * @param dayType
 	 * @return
 	 */
-	public List<ThreeSale> listSecondTeamByUndeleted(long start, int count, Long uid);
-
-	/**
-	 * 缁熻绮変笣浜岀骇
-	 * @param uid
-	 * @return
-	 */
-	public long countSecondTeamByUndeleted(Long uid);
+	public long countSecondTeamByDate(Long uid, int dayType);
 
 	
 	/**
-	 * 鍒犻櫎鑴辩闃熷憳
-	 * @param id
-	 * @param uid
-	 * @param tid
+	 * 鏌ヨboosID
+	 * @return
 	 */
-	public void remvoeBreak(Long id, Long uid, Long tid);
+	public List<Long> getAllBossId();
+
 
 }

--
Gitblit v1.8.0