admin
2020-05-06 24a8d17e007545f7426c48352109aa1a9c6587ee
fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
@@ -28,24 +28,6 @@
    */
   void effective(UserInfo worker);
   // 获取一级用户数量
   long getFirstUsersCount(Long uid);
   // 获取二级用户数量
   long getSecondUsersCount(Long uid);
   /**
    * 删除邀请关系id
    *
    * @param id
    * @return
    */
   public int deleteByPrimaryKey(Long id);
   /**
    * 一级查询
    * 
@@ -88,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);
   /**
    * 前端查询一级队员
    * 
@@ -117,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);
   /**
    * 前端查询二级队员
@@ -127,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);
   /**
    * 获取上级
@@ -166,15 +127,6 @@
    */
   public int getSuccessRelationshipNum(Long uid);
   /**
    * 统计邀请成功队员数量
    *
    * @param uid
    * @return
    */
   public long countSuccessFirstTeam(Long uid);
   /**
    * 根据邀请者查询关系
    * 
@@ -191,22 +143,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);
   /**
    * 时间段呢 邀请成功信息
@@ -225,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);
   /**
    * 二级队员
@@ -235,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);
   /**
    * 查询邀请关系 时间筛选
@@ -252,7 +218,6 @@
    */
   public void inviteSeparate(Long workerId, Long bossId);
   /*
    * 该队员 在队中排第几
    */
@@ -273,8 +238,7 @@
    * @return
    */
   public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
   /**
    * 获取上几级邀请人
    * @Title: getMyBossDeepList
@@ -285,9 +249,8 @@
    * List<ThreeSale> 返回类型
    * @throws
    */
   public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
   public List<ThreeSale> getMyBossDeepList(Long uid, int deep);
   /**
    * 获取上级列表
    * @Title: getMyBossDeepList
@@ -300,44 +263,14 @@
   public List<ThreeSale> getMyBossDeepList(Long uid);
   /**
    * 查询未删除版-粉丝一级
    * @param start
    * @param count
    * 获取用户的顶级boss
    * @Title: getTopBoss
    * @Description:
    * @param uid
    * @return
    * @return
    * Long 返回类型
    * @throws
    */
   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);
   public Long getTopBoss(Long uid);
}