yujian
2020-01-18 f4a0f2acc63d7785eab108419a4e16f5f688cb95
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,25 @@
    */
   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);
}