yujian
2019-04-29 9a24f2802a3d6fe3e82c05e52f2880d65ad04dcf
fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/ThreeSaleSerivce.java
@@ -23,6 +23,7 @@
   /**
    * 邀请关系生效
    *
    * @param worker
    */
   void effective(UserInfo worker);
@@ -133,15 +134,6 @@
   public long countSuperiorQuery(Integer state, Long uid);
   /**
    * app端一级查询1.4.1
    *
    * @param start
    * @param count
    * @param uid
    * @return
    */
   public List<ThreeSale> listFirstTeam(long start, int count, Long uid);
   /**
    * 统计所有一级队员
@@ -152,16 +144,6 @@
    * @return
    */
   public long countFirstTeam(Long uid, Integer state);
   /**
    * app端二级查询1.4.1
    *
    * @param start
    * @param count
    * @param uid
    * @return
    */
   public List<ThreeSale> listSecondTeam(long start, int count, Long uid);
   /**
    * 统计二级队员
@@ -181,7 +163,7 @@
    * @param uid
    * @return
    */
   public JSONObject getMyFirstTeam(long start, int count, Long uid);
   public JSONObject getMyFirstTeam(long start, int count, Long uid, Integer state);
   /**
    * 前端查询二级队员
@@ -191,7 +173,7 @@
    * @param uid
    * @return
    */
   public JSONObject getMySecondTeam(long start, int count, Long uid);
   public JSONObject getMySecondTeam(long start, int count, Long uid, Integer state);
   /**
    * 获取上级
@@ -221,10 +203,10 @@
    * @return
    */
   public List<ThreeSale> listByWorkerId(Long workerId);
   /**
    * 获取成功邀请关系数量
    *
    * @param uid
    * @return
    */
@@ -232,6 +214,7 @@
   /**
    * 邀请码生成上下级关系
    *
    * @param invitee
    * @param inviter
    * @throws ThreeSaleException
@@ -240,9 +223,34 @@
   /**
    * 统计邀请成功队员数量
    *
    * @param uid
    * @return
    */
   public long countSuccessFirstTeam(Long uid);
   /**
    * 根据邀请者查询关系
    *
    * @param workerId
    * @return
    */
   public ThreeSale getByWorkerId(Long workerId);
   /**
    * 微信激活邀请队员关系
    * @param invitee
    * @param inviterId
    * @param threeSaleOld
    * @throws ThreeSaleException
    */
   public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) throws ThreeSaleException;
   /**
   * 根据下级查找对象
    * @param workerId
    * @return
    */
   public ThreeSale selectByWorkerId(Long workerId);
}