| | |
| | | */
|
| | | UserInfo getBoss(long uid);
|
| | |
|
| | | int findInviteCount(long id);
|
| | |
|
| | | void bind(UserInfo invitee, UserInfo inviter) throws ThreeSaleException;
|
| | |
|
| | | void effective(UserInfo find);
|
| | |
|
| | | void validateTwentyFour();
|
| | |
|
| | | /**
|
| | | * 重新计算用户的等级
|
| | | * 邀请关系生效
|
| | | *
|
| | | * @param uid
|
| | | * @param worker
|
| | | */
|
| | | void reComputeUserRank(Long uid);
|
| | |
|
| | | void validate365();
|
| | |
|
| | | // 获取下级用户
|
| | | List<UserInfo> getFirstUsers(Long uid, int page);
|
| | | void effective(UserInfo worker);
|
| | |
|
| | | // 获取一级用户数量
|
| | | long getFirstUsersCount(Long uid);
|
| | |
|
| | | // 获取下2级用户
|
| | | List<UserInfo> getSecondUsers(Long uid, int page);
|
| | |
|
| | | // 获取二级用户数量
|
| | | long getSecondUsersCount(Long uid);
|
| | |
|
| | | // 获取最近有效的分销列表
|
| | | List<ThreeSale> getLastestThreeSaleList(int i, String key);
|
| | |
|
| | | // 邀请关系
|
| | | int getLastestThreeSaleCount(String key);
|
| | |
|
| | | /**
|
| | | * 查询一度队员集合
|
| | |
| | |
|
| | | 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);
|
| | |
|
| | | /**
|
| | | * 统计所有一级队员
|
| | |
| | | * @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);
|
| | |
|
| | | /**
|
| | | * 统计二级队员
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public JSONObject getMyFirstTeam(long start, int count, Long uid);
|
| | | public JSONObject getMyFirstTeam(long start, int count, Long uid, Integer state);
|
| | |
|
| | | /**
|
| | | * 前端查询二级队员
|
| | |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public JSONObject getMySecondTeam(long start, int count, Long uid);
|
| | | public JSONObject getMySecondTeam(long start, int count, Long uid, Integer state);
|
| | |
|
| | | /**
|
| | | * 获取上级
|
| | |
| | | * @return
|
| | | */
|
| | | public List<ThreeSale> listByWorkerId(Long workerId);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 获取成功邀请关系数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 邀请码生成上下级关系
|
| | | * |
| | | * @param invitee
|
| | | * @param inviter
|
| | | * @throws ThreeSaleException
|
| | |
| | |
|
| | | /**
|
| | | * 统计邀请成功队员数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | 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);
|
| | |
|
| | | }
|