yujian
2020-04-26 ee1d39f11b9483b64a88029f1755a6e7166fea15
fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
@@ -28,47 +28,6 @@
    */
   void effective(UserInfo worker);
   // 获取一级用户数量
   long getFirstUsersCount(Long uid);
   // 获取二级用户数量
   long getSecondUsersCount(Long uid);
   /**
    * 查询一度队员集合
    *
    * @param start
    * @param count
    * @param key
    * @param uid
    * @return
    */
   public List<ThreeSale> queryMyFirstTeamList(int start, int count, String key, Long bossId);
   public long queryCountMyFirstTeamList(String key, Long bossId);
   /**
    * 查询二度队员集合
    *
    * @param start
    * @param count
    * @param key
    * @param uid
    * @return
    */
   public List<ThreeSale> queryMySecondTeamList(int start, int count, String key, Long bossId);
   public long queryCountMySecondTeamList(String key, Long bossId);
   /**
    * 删除邀请关系id
    *
    * @param id
    * @return
    */
   public int deleteByPrimaryKey(Long id);
   /**
    * 一级查询
@@ -81,9 +40,9 @@
    * @return
    */
   public List<ThreeSale> listFirstTeamQuery(long start, int count, Long uid, Integer state, String startTime,
         String endTime);
         String endTime, Integer validState);
   public long countFirstTeamQuery(Long uid, Integer state, String startTime, String endTime);
   public long countFirstTeamQuery(Long uid, Integer state, String startTime, String endTime, Integer validState);
   /**
    * 二级查询
@@ -96,9 +55,9 @@
    * @return
    */
   public List<ThreeSale> listSecondTeamQuery(long start, int count, Long uid, Integer state, String startTime,
         String endTime);
         String endTime, Integer validState);
   public long countSecondTeamQuery(Long uid, Integer state, String startTime, String endTime);
   public long countSecondTeamQuery(Long uid, Integer state, String startTime, String endTime, Integer validState);
   /**
    * 上级查询
@@ -113,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);
   /**
    * 前端查询一级队员
@@ -141,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);
   /**
    * 前端查询二级队员
@@ -151,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);
   /**
    * 获取上级
@@ -190,14 +130,6 @@
    */
   public int getSuccessRelationshipNum(Long uid);
   /**
    * 统计邀请成功队员数量
    *
    * @param uid
    * @return
    */
   public long countSuccessFirstTeam(Long uid);
   /**
    * 根据邀请者查询关系
@@ -249,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);
   /**
    * 二级队员
@@ -259,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
@@ -322,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);
}