| | |
| | | int updateByPrimaryKey(ThreeSale record); |
| | | |
| | | int effectThreeSale(Long workerUid); |
| | | |
| | | /** |
| | | * 删除失效 |
| | | * @param bossId |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | int deleteExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId); |
| | | |
| | | /** |
| | | * 失效 |
| | | * @param bossId |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | List<ThreeSale> getExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId); |
| | | |
| | | |
| | | /** |
| | | * 查询一度队员集合 |
| | |
| | | * @param paramLong1 |
| | | * @return |
| | | */ |
| | | List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); |
| | | List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("state") Integer state); |
| | | |
| | | /** |
| | | * 统计一级队员 |
| | |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); |
| | | List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid,@Param("state") Integer state); |
| | | |
| | | /** |
| | | * 统计二级队员 |
| | |
| | | */ |
| | | ThreeSale getRelationshipByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId); |
| | | |
| | | /** |
| | | * 根据下级查询成功的邀请关系 |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | ThreeSale selectSuccessByWorkerId(Long workerId); |
| | | |
| | | |
| | | /** |
| | | * 根据邀请者ID查询未失效关系 |
| | | * |
| | | * @param workerId |
| | | * @return |
| | | */ |
| | | ThreeSale getByWorkerId(Long workerId); |
| | | |
| | | |
| | | /** |
| | | * 查询时间段邀请成功人信息 |
| | | * @param bossId |
| | | * @param minTime |
| | | * @param maxTime |
| | | * @return |
| | | */ |
| | | List<ThreeSale> getSuccessByDate(@Param("bossId")Long bossId,@Param("minTime")Long minTime, @Param("maxTime")Long maxTime); |
| | | |
| | | |
| | | } |