| | |
| | | */
|
| | | void effective(UserInfo worker);
|
| | |
|
| | |
|
| | | /**
|
| | | * 一级查询
|
| | | *
|
| | |
| | | public List<ThreeSale> listSuperiorQuery(long start, int count, Integer state, Long uid);
|
| | |
|
| | | public long countSuperiorQuery(Integer state, Long uid);
|
| | |
|
| | |
|
| | |
|
| | | /**
|
| | | * 前端查询一级队员
|
| | |
| | | */
|
| | | public int getSuccessRelationshipNum(Long uid);
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据邀请者查询关系
|
| | | *
|
| | |
| | | * @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);
|
| | |
|
| | | /**
|
| | | * 时间段呢 邀请成功信息
|
| | |
| | | */
|
| | | public List<ThreeSale> listSecondTeam(long start, int count, Long uid);
|
| | |
|
| | | |
| | | /**
|
| | | * 统计直接粉丝数量
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | public long countSecondTeam(Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 查询邀请关系 时间筛选
|
| | | * @param workerId 下级id
|
| | |
| | | */
|
| | | public void inviteSeparate(Long workerId, Long bossId);
|
| | |
|
| | | |
| | | /*
|
| | | * 该队员 在队中排第几
|
| | | */
|
| | |
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 获取上几级邀请人
|
| | | * @Title: getMyBossDeepList
|
| | |
| | | * List<ThreeSale> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
|
| | | |
| | | |
| | | public List<ThreeSale> getMyBossDeepList(Long uid, int deep);
|
| | |
|
| | | /**
|
| | | * 获取上级列表
|
| | | * @Title: getMyBossDeepList
|
| | |
| | | */
|
| | | public List<ThreeSale> getMyBossDeepList(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取用户的顶级boss
|
| | | * @Title: getTopBoss
|
| | | * @Description: |
| | | * @param uid
|
| | | * @return |
| | | * Long 返回类型
|
| | | * @throws
|
| | | */
|
| | | public Long getTopBoss(Long uid);
|
| | |
|
| | | }
|