yujian
2020-04-15 c6b718c3cadf5e5fff4c2a47fd1247842439f8c7
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;
   /**
    * 邀请关系生效
@@ -244,7 +244,7 @@
    * @param threeSaleOld
    * @throws ThreeSaleException
    */
   public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) throws ThreeSaleException;
   public void bindRelationshipByWX(UserInfo invitee, Long inviterId) throws ThreeSaleException;
   
   /**
   * 根据下级查找对象
@@ -299,4 +299,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 上deep级
    * @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);
}