From 24a8d17e007545f7426c48352109aa1a9c6587ee Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 06 五月 2020 12:02:09 +0800 Subject: [PATCH] IOS上线隐藏我的界面的banner与超级会员升级信息 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java | 206 ++++++++++++++++++++++----------------------------- 1 files changed, 90 insertions(+), 116 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..4c7874e 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; /** * 閭�璇峰叧绯荤敓鏁� @@ -27,70 +27,6 @@ * @param worker */ void effective(UserInfo worker); - - // 鑾峰彇涓�绾х敤鎴锋暟閲� - long getFirstUsersCount(Long uid); - - // 鑾峰彇浜岀骇鐢ㄦ埛鏁伴噺 - long getSecondUsersCount(Long uid); - - /** - * 鏌ヨ涓�搴﹂槦鍛橀泦鍚� - * - * @param start - * @param count - * @param key - * @param uid - * @return - */ - public List<ThreeSale> queryMyFirstTeamList(int start, int count, String key, Long bossId); - - public long queryCountMyFirstTeamList(String key, Long bossId); - - /** - * 鏌ヨ浜屽害闃熷憳闆嗗悎 - * - * @param start - * @param count - * @param key - * @param uid - * @return - */ - public List<ThreeSale> queryMySecondTeamList(int start, int count, String key, Long bossId); - - public long queryCountMySecondTeamList(String key, Long bossId); - - /** - * 鍒犻櫎閭�璇峰叧绯籭d - * - * @param id - * @return - */ - 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); /** * 涓�绾ф煡璇� @@ -103,9 +39,9 @@ * @return */ public List<ThreeSale> listFirstTeamQuery(long start, int count, Long uid, Integer state, String startTime, - String endTime); + String endTime, Integer validState); - public long countFirstTeamQuery(Long uid, Integer state, String startTime, String endTime); + public long countFirstTeamQuery(Long uid, Integer state, String startTime, String endTime, Integer validState); /** * 浜岀骇鏌ヨ @@ -118,9 +54,9 @@ * @return */ public List<ThreeSale> listSecondTeamQuery(long start, int count, Long uid, Integer state, String startTime, - String endTime); + String endTime, Integer validState); - public long countSecondTeamQuery(Long uid, Integer state, String startTime, String endTime); + public long countSecondTeamQuery(Long uid, Integer state, String startTime, String endTime, Integer validState); /** * 涓婄骇鏌ヨ @@ -134,27 +70,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); - /** * 鍓嶇鏌ヨ涓�绾ч槦鍛� * @@ -163,7 +78,7 @@ * @param uid * @return */ - public JSONObject getMyFirstTeam(long start, int count, Long uid, Integer state); + public JSONObject getMyFirstTeam(long start, int count, Long uid); /** * 鍓嶇鏌ヨ浜岀骇闃熷憳 @@ -173,7 +88,7 @@ * @param uid * @return */ - public JSONObject getMySecondTeam(long start, int count, Long uid, Integer state); + public JSONObject getMySecondTeam(long start, int count, Long uid); /** * 鑾峰彇涓婄骇 @@ -213,23 +128,6 @@ public int getSuccessRelationshipNum(Long uid); /** - * 閭�璇风爜鐢熸垚涓婁笅绾у叧绯� - * - * @param invitee - * @param inviter - * @throws ThreeSaleException - */ - public void bindRelationshipByInviteCode(UserInfo invitee, UserInfo inviter) throws ThreeSaleException; - - /** - * 缁熻閭�璇锋垚鍔熼槦鍛樻暟閲� - * - * @param uid - * @return - */ - public long countSuccessFirstTeam(Long uid); - - /** * 鏍规嵁閭�璇疯�呮煡璇㈠叧绯� * * @param workerId @@ -244,23 +142,22 @@ * @param threeSaleOld * @throws ThreeSaleException */ - public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) 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); /** * 鏃堕棿娈靛憿 閭�璇锋垚鍔熶俊鎭� @@ -279,7 +176,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); /** * 浜岀骇闃熷憳 @@ -289,7 +186,22 @@ * @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 uid + * @return + */ + public long countFirstTeam(Long uid); + + /** + * 缁熻闂存帴绮変笣鏁伴噺 + * @param uid + * @return + */ + public long countSecondTeam(Long uid); /** * 鏌ヨ閭�璇峰叧绯� 鏃堕棿绛涢�� @@ -299,4 +211,66 @@ */ 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); + + /** + * 鑾峰彇鐢ㄦ埛鐨勯《绾oss + * @Title: getTopBoss + * @Description: + * @param uid + * @return + * Long 杩斿洖绫诲瀷 + * @throws + */ + public Long getTopBoss(Long uid); + } -- Gitblit v1.8.0