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 {
@@ -134,15 +134,6 @@
   public long countSuperiorQuery(Integer state, Long uid);
   /**
    * app端一级查询1.4.1
    *
    * @param start
    * @param count
    * @param uid
    * @return
    */
   public List<ThreeSale> listFirstTeam(long start, int count, Long uid);
   /**
    * 统计所有一级队员
@@ -153,16 +144,6 @@
    * @return
    */
   public long countFirstTeam(Long uid, Integer state);
   /**
    * app端二级查询1.4.1
    *
    * @param start
    * @param count
    * @param uid
    * @return
    */
   public List<ThreeSale> listSecondTeam(long start, int count, Long uid);
   /**
    * 统计二级队员
@@ -182,7 +163,7 @@
    * @param uid
    * @return
    */
   public JSONObject getMyFirstTeam(long start, int count, Long uid);
   public JSONObject getMyFirstTeam(long start, int count, Long uid, Integer state);
   /**
    * 前端查询二级队员
@@ -192,7 +173,7 @@
    * @param uid
    * @return
    */
   public JSONObject getMySecondTeam(long start, int count, Long uid);
   public JSONObject getMySecondTeam(long start, int count, Long uid, Integer state);
   /**
    * 获取上级
@@ -249,10 +230,56 @@
   public long countSuccessFirstTeam(Long uid);
   /**
    * 根据下级查找对象
    * 根据邀请者查询关系
    *
    * @param workerId
    * @return
    */
   public ThreeSale getByWorkerId(Long workerId);
   /**
    * 微信激活邀请队员关系
    * @param invitee
    * @param inviterId
    * @param threeSaleOld
    * @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);
}