yujian
2020-04-26 ee1d39f11b9483b64a88029f1755a6e7166fea15
fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
@@ -28,23 +28,6 @@
    */
   void effective(UserInfo worker);
   // 获取一级用户数量
   long getFirstUsersCount(Long uid);
   // 获取二级用户数量
   long getSecondUsersCount(Long uid);
   /**
    * 删除邀请关系id
    *
    * @param id
    * @return
    */
   public int deleteByPrimaryKey(Long id);
   /**
    * 一级查询
@@ -89,25 +72,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 +81,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 +91,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,14 +130,6 @@
    */
   public int getSuccessRelationshipNum(Long uid);
   /**
    * 统计邀请成功队员数量
    *
    * @param uid
    * @return
    */
   public long countSuccessFirstTeam(Long uid);
   /**
    * 根据邀请者查询关系
@@ -225,7 +181,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,8 +191,24 @@
    * @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);
   /**
    * 查询邀请关系 时间筛选
    * @param workerId 下级id
@@ -298,46 +270,5 @@
    * @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);
}