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 | 97 ++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 80 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..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,7 +28,6 @@ * @param worker */ void effective(UserInfo worker); - /** * 涓�绾ф煡璇� @@ -70,8 +70,6 @@ public List<ThreeSale> listSuperiorQuery(long start, int count, Integer state, Long uid); public long countSuperiorQuery(Integer state, Long uid); - - /** * 鍓嶇鏌ヨ涓�绾ч槦鍛� @@ -130,7 +128,6 @@ */ public int getSuccessRelationshipNum(Long uid); - /** * 鏍规嵁閭�璇疯�呮煡璇㈠叧绯� * @@ -147,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); /** * 鏃堕棿娈靛憿 閭�璇锋垚鍔熶俊鎭� @@ -192,7 +188,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 +219,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 +243,6 @@ */ public void inviteSeparate(Long workerId, Long bossId); - /* * 璇ラ槦鍛� 鍦ㄩ槦涓帓绗嚑 */ @@ -245,8 +263,7 @@ * @return */ public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime); - - + /** * 鑾峰彇涓婂嚑绾ч個璇蜂汉 * @Title: getMyBossDeepList @@ -257,9 +274,8 @@ * List<ThreeSale> 杩斿洖绫诲瀷 * @throws */ - public List<ThreeSale> getMyBossDeepList(Long uid,int deep); - - + public List<ThreeSale> getMyBossDeepList(Long uid, int deep); + /** * 鑾峰彇涓婄骇鍒楄〃 * @Title: getMyBossDeepList @@ -271,4 +287,51 @@ */ public List<ThreeSale> getMyBossDeepList(Long uid); + /** + * 鑾峰彇鐢ㄦ埛鐨勯《绾oss + * @Title: getTopBoss + * @Description: + * @param uid + * @return + * Long 杩斿洖绫诲瀷 + * @throws + */ + 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); + + /** + * 鏍规棩鏈熺被鍨嬭繘琛岀粺璁$洿鎺� + */ + public long countFirstTeamByDate(Long uid, int dayType); + + /** + * 鏍规棩鏈熺被鍨嬭繘琛岀粺璁¢棿鎺� + * @param uid + * @param dayType + * @return + */ + public long countSecondTeamByDate(Long uid, int dayType); + + + /** + * 鏌ヨboosID + * @return + */ + public List<Long> getAllBossId(); + + } -- Gitblit v1.8.0