admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/inter/user/invite/ThreeSaleSerivce.java
@@ -1,5 +1,6 @@
package com.yeshi.fanli.service.inter.user.invite;
import java.util.Date;
import java.util.List;
import com.yeshi.fanli.entity.bus.user.ThreeSale;
@@ -27,7 +28,6 @@
    * @param worker
    */
   void effective(UserInfo worker);
   /**
    * 一级查询
@@ -70,8 +70,6 @@
   public List<ThreeSale> listSuperiorQuery(long start, int count, Integer state, Long uid);
   public long countSuperiorQuery(Integer state, Long uid);
   /**
    * 前端查询一级队员
@@ -130,7 +128,6 @@
    */
   public int getSuccessRelationshipNum(Long uid);
   /**
    * 根据邀请者查询关系
    * 
@@ -147,22 +144,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);
   /**
    * 时间段呢 邀请成功信息
@@ -192,7 +188,30 @@
    * @return
    */
   public List<ThreeSale> listSecondTeam(long start, int count, Long uid);
   /**
    * 一级队员
    * @param start
    * @param count
    * @param uid
    * @param state
    * @return
    */
   public List<ThreeSale> listFirstTeam(long start, int count, Long uid, List<Long> listId);
   /**
    * 二级队员
    * @param start
    * @param count
    * @param uid
    * @param state
    * @return
    */
   public List<ThreeSale> listSecondTeam(long start, int count, Long uid, List<Long> listId);
   public long countFirstTeam(Long uid);
   public long countSecondTeam(Long uid);
   
   /**
    * 统计直接粉丝数量
@@ -200,15 +219,15 @@
    * @param uid
    * @return
    */
   public long countFirstTeam(Long uid);
   public long countFirstTeam(Long uid, List<Long> listId);
   /**
    * 统计间接粉丝数量
    * @param uid
    * @return
    */
   public long countSecondTeam(Long uid);
   public long countSecondTeam(Long uid, List<Long> listId);
   /**
    * 查询邀请关系 时间筛选
    * @param workerId 下级id
@@ -224,7 +243,6 @@
    */
   public void inviteSeparate(Long workerId, Long bossId);
   /*
    * 该队员 在队中排第几
    */
@@ -245,8 +263,7 @@
    * @return
    */
   public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
   /**
    * 获取上几级邀请人
    * @Title: getMyBossDeepList
@@ -257,9 +274,8 @@
    * List<ThreeSale> 返回类型
    * @throws
    */
   public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
   public List<ThreeSale> getMyBossDeepList(Long uid, int deep);
   /**
    * 获取上级列表
    * @Title: getMyBossDeepList
@@ -271,4 +287,51 @@
    */
   public List<ThreeSale> getMyBossDeepList(Long uid);
   /**
    * 获取用户的顶级boss
    * @Title: getTopBoss
    * @Description:
    * @param uid
    * @return
    * Long 返回类型
    * @throws
    */
   public Long getTopBoss(Long uid);
   /**
    * 查询列表
    * @Title: list
    * @Description:
    * @param page
    * @param pageSize
    * @return
    * List<ThreeSale> 返回类型
    * @throws
    */
   public List<ThreeSale> listAll(Date minTime,Date maxTime, int page,int pageSize);
   public long countAll(Date minTime,Date maxTime);
   /**
    * 根日期类型进行统计直接
    */
   public long countFirstTeamByDate(Long uid, int dayType);
   /**
    *  根日期类型进行统计间接
    * @param uid
    * @param dayType
    * @return
    */
   public long countSecondTeamByDate(Long uid, int dayType);
   /**
    * 查询boosID
    * @return
    */
   public List<Long> getAllBossId();
}