| | |
| | | */
|
| | | UserInfo getBoss(long uid);
|
| | |
|
| | | void bind(UserInfo invitee, UserInfo inviter) throws ThreeSaleException;
|
| | | void bind(UserInfo worker, UserInfo boss) throws ThreeSaleException;
|
| | |
|
| | | /**
|
| | | * 邀请关系生效
|
| | |
| | | * @param threeSaleOld
|
| | | * @throws ThreeSaleException
|
| | | */
|
| | | public void bindRelationshipByWX(UserInfo invitee, Long inviterId, ThreeSale threeSaleOld) throws ThreeSaleException;
|
| | | public void bindRelationshipByWX(UserInfo invitee, Long inviterId) throws ThreeSaleException;
|
| | |
|
| | | /**
|
| | | * 根据下级查找对象
|
| | |
| | | */
|
| | | public List<ThreeSale> listSecondTeam(long start, int count, Long uid, Integer state);
|
| | |
|
| | | /**
|
| | | * 查询邀请关系 时间筛选
|
| | | * @param workerId 下级id
|
| | | * @param time
|
| | | * @return
|
| | | */
|
| | | public ThreeSale getByWorkerIdAndTime(Long workerId, long time);
|
| | |
|
| | | /**
|
| | | * 邀请关系脱离
|
| | | * @param workerId
|
| | | * @param bossId
|
| | | */
|
| | | public void inviteSeparate(Long workerId, Long bossId);
|
| | |
|
| | | |
| | | /*
|
| | | * 该队员 在队中排第几
|
| | | */
|
| | | public long getTeamOrderNumByWorkerId(Long workerId);
|
| | |
|
| | | /**
|
| | | * 查询最近关系 - 有效则优先
|
| | | * @param bossId
|
| | | * @param workerId
|
| | | * @return
|
| | | */
|
| | | public ThreeSale getNearRelationByBossIdAndWorkerId(Long bossId, Long workerId);
|
| | |
|
| | | /**
|
| | | * 根据时间筛选出有效粉丝
|
| | | * @param bossId
|
| | | * @param limitTime
|
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> getValidWorkerIdsByTime(Long bossId, long limitTime);
|
| | | |
| | | |
| | | /**
|
| | | * 获取上几级邀请人
|
| | | * @Title: getMyBossDeepList
|
| | | * @Description: |
| | | * @param uid
|
| | | * @param deep 上deep级
|
| | | * @return |
| | | * List<ThreeSale> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<ThreeSale> getMyBossDeepList(Long uid,int deep);
|
| | | |
| | | |
| | | /**
|
| | | * 获取上级列表
|
| | | * @Title: getMyBossDeepList
|
| | | * @Description: |
| | | * @param uid
|
| | | * @return |
| | | * List<ThreeSale> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<ThreeSale> getMyBossDeepList(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询未删除版-粉丝一级
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> listFirstTeamByUndeleted(long start, int count, Long uid);
|
| | |
|
| | | /**
|
| | | * 统计粉丝一级
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countFirstTeamByUndeleted(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询未删除版-粉丝二级
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> listSecondTeamByUndeleted(long start, int count, Long uid);
|
| | |
|
| | | /**
|
| | | * 统计粉丝二级
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countSecondTeamByUndeleted(Long uid);
|
| | |
|
| | | |
| | | /**
|
| | | * 删除脱离队员
|
| | | * @param id
|
| | | * @param uid
|
| | | * @param tid
|
| | | */
|
| | | public void remvoeBreak(Long id, Long uid, Long tid);
|
| | |
|
| | | }
|