yujian
2019-08-27 d8359ddb48dab5cc797a9d552e11fde571f4920c
fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/ThreeSaleSerivce.java
@@ -2,11 +2,11 @@
import java.util.List;
import net.sf.json.JSONObject;
import com.yeshi.fanli.entity.bus.user.ThreeSale;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.exception.ThreeSaleException;
import net.sf.json.JSONObject;
public interface ThreeSaleSerivce {
@@ -23,6 +23,7 @@
   /**
    * 邀请关系生效
    *
    * @param worker
    */
   void effective(UserInfo worker);
@@ -202,10 +203,10 @@
    * @return
    */
   public List<ThreeSale> listByWorkerId(Long workerId);
   /**
    * 获取成功邀请关系数量
    *
    * @param uid
    * @return
    */
@@ -213,6 +214,7 @@
   /**
    * 邀请码生成上下级关系
    *
    * @param invitee
    * @param inviter
    * @throws ThreeSaleException
@@ -221,6 +223,7 @@
   /**
    * 统计邀请成功队员数量
    *
    * @param uid
    * @return
    */
@@ -242,4 +245,41 @@
    * @throws ThreeSaleException
    */
   public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) throws ThreeSaleException;
   /**
   * 根据下级查找对象
    * @param workerId
    * @return
    */
   public ThreeSale selectByWorkerId(Long workerId);
   /**
    * 时间段呢 邀请成功信息
    * @param bossId
    * @param minTime
    * @param maxTime
    * @return
    */
   public List<ThreeSale> getSuccessByDate(Long bossId, Long minTime, Long maxTime);
   /**
    * 一级队员
    * @param start
    * @param count
    * @param uid
    * @param state
    * @return
    */
   public List<ThreeSale> listFirstTeam(long start, int count, Long uid, Integer state);
   /**
    * 二级队员
    * @param start
    * @param count
    * @param uid
    * @param state
    * @return
    */
   public List<ThreeSale> listSecondTeam(long start, int count, Long uid, Integer state);
}