| | |
| | |
|
| | | 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 {
|
| | |
|
| | |
| | |
|
| | | /**
|
| | | * 邀请关系生效
|
| | | * |
| | | * @param worker
|
| | | */
|
| | | void effective(UserInfo worker);
|
| | |
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> listByWorkerId(Long workerId);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 获取成功邀请关系数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 邀请码生成上下级关系
|
| | | * |
| | | * @param invitee
|
| | | * @param inviter
|
| | | * @throws ThreeSaleException
|
| | |
| | |
|
| | | /**
|
| | | * 统计邀请成功队员数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | |
| | | * @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);
|
| | |
|
| | | }
|