| | |
| | | */ |
| | | ThreeSale getRelationshipByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId); |
| | | |
| | | |
| | | /** |
| | | * 最后一次关系记录 -无论 |
| | | * @param bossId |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | ThreeSale getNearRelationByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据下级查询成功的邀请关系 |
| | | * @param workerId |
| | |
| | | */ |
| | | ThreeSale selectLatestByWorkerIdAndState(@Param("workerId") Long workerId,@Param("state") int state); |
| | | |
| | | /** |
| | | * 根据时间查询邀请关系 |
| | | * @param uid |
| | | * @param time |
| | | * @return |
| | | */ |
| | | ThreeSale getByWorkerIdAndTime(@Param("workerId") Long workerId, @Param("time") long time); |
| | | |
| | | /** |
| | | * 邀请关系脱离 |
| | | * @param bossId |
| | | * @param workerId |
| | | */ |
| | | void inviteSeparate(@Param("workerId") Long workerId, @Param("bossId")Long bossId); |
| | | |
| | | /** |
| | | * 队员在该boss 下第几个队员序号 |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | long getTeamOrderNumByWorkerId(@Param("workerId") Long workerId); |
| | | } |