| | |
| | | int insertSelective(ThreeSale record);
|
| | |
|
| | | int updateByPrimaryKey(ThreeSale record);
|
| | | |
| | |
|
| | | int updateByPrimaryKeySelective(ThreeSale record);
|
| | |
|
| | | ThreeSale selectByPrimaryKey(Long id);
|
| | | |
| | | |
| | |
|
| | | UserInfo selectBoss(Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 根据被邀请者ID查询
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | ThreeSale getByWorkerId(Long workerId);
|
| | | |
| | |
|
| | | /**
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | ThreeSale getMyBoss(@Param("uid") Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 根据下级查询成功的邀请关系
|
| | |
| | | */
|
| | | ThreeSale selectSuccessByWorkerId(Long workerId);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据邀请者ID查询关系
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | List<ThreeSale> listByWorkerId(Long workerId);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 一级查询-后台查询
|
| | |
| | | @Param("state") Integer state, @Param("startTime") String startTime, @Param("endTime") String endTime,
|
| | | @Param("validState") Integer validState);
|
| | |
|
| | | long countFirstTeamQuery(@Param("uid") Long uid, @Param("state") Integer state, @Param("startTime") String startTime,
|
| | | @Param("endTime") String endTime, @Param("validState") Integer validState);
|
| | | long countFirstTeamQuery(@Param("uid") Long uid, @Param("state") Integer state,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime,
|
| | | @Param("validState") Integer validState);
|
| | |
|
| | | /**
|
| | | * 二级查询 -后台查询
|
| | |
| | | * @return
|
| | | */
|
| | | List<ThreeSale> listSecondTeamQuery(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid,
|
| | | @Param("state") Integer state, @Param("startTime") String startTime, @Param("endTime") String endTime
|
| | | ,@Param("validState") Integer validState);
|
| | | @Param("state") Integer state, @Param("startTime") String startTime, @Param("endTime") String endTime,
|
| | | @Param("validState") Integer validState);
|
| | |
|
| | | long countSecondTeamQuery(@Param("uid") Long uid, @Param("state") Integer state,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("validState") Integer validState);
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime,
|
| | | @Param("validState") Integer validState);
|
| | |
|
| | | /**
|
| | | * 上级查询 -后台查询
|
| | |
| | |
|
| | | long countSuperiorQuery(@Param("state") Integer state, @Param("uid") Long uid);
|
| | |
|
| | | |
| | | |
| | | /**
|
| | | * 查询一级队员
|
| | | * @param start
|
| | |
| | | * @return
|
| | | */
|
| | | List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid,
|
| | | @Param("listId")List<Long> listId);
|
| | | @Param("listId") List<Long> listId);
|
| | |
|
| | | /**
|
| | | * 查询二级队员
|
| | |
| | | * @return
|
| | | */
|
| | | List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid,
|
| | | @Param("listId")List<Long> listId);
|
| | | |
| | | @Param("listId") List<Long> listId);
|
| | |
|
| | | /**
|
| | | * 统计一级队员
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countFirstTeam(@Param("uid") Long uid, @Param("listId")List<Long> listId);
|
| | | |
| | | long countFirstTeam(@Param("uid") Long uid, @Param("listId") List<Long> listId);
|
| | |
|
| | | /**
|
| | | * 统计二级队员
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countSecondTeam(@Param("uid") Long uid, @Param("listId")List<Long> listId);
|
| | | long countSecondTeam(@Param("uid") Long uid, @Param("listId") List<Long> listId);
|
| | |
|
| | | /**
|
| | | * 统计一级队员
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countFirstTeamByDate(@Param("uid") Long uid, @Param("dayType") int dayType);
|
| | |
|
| | | /**
|
| | | * 统计二级队员
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countSecondTeamByDate(@Param("uid") Long uid, @Param("dayType") int dayType);
|
| | |
|
| | | /**
|
| | | * 根据id、uid查询
|
| | |
| | | */
|
| | | List<ThreeSale> listbyIdAndBossId(@Param("id") Long id, @Param("uid") Long uid, @Param("expire") Integer expire);
|
| | |
|
| | | |
| | | /**
|
| | | * 获取成功邀请关系数量
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | int getSuccessRelationshipNum(@Param("uid") Long uid);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 根据邀请者ID、bossID查询 有效关系
|
| | | *
|
| | |
| | | * @return
|
| | | */
|
| | | ThreeSale getRelationshipByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId);
|
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 最后一次关系记录 -无论
|
| | | * @param bossId
|
| | |
| | | * @return
|
| | | */
|
| | | ThreeSale getNearRelationByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId);
|
| | | |
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 查询时间段邀请成功人信息
|
| | | * @param bossId
|
| | |
| | | * @param maxTime
|
| | | * @return
|
| | | */
|
| | | List<ThreeSale> getSuccessByDate(@Param("bossId")Long bossId,@Param("minTime")Long minTime, @Param("maxTime")Long maxTime);
|
| | | |
| | | List<ThreeSale> getSuccessByDate(@Param("bossId") Long bossId, @Param("minTime") Long minTime,
|
| | | @Param("maxTime") Long maxTime);
|
| | |
|
| | | /**
|
| | | * 查询最近的信息(根据下级ID与状态)
|
| | | * @param workerId
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | ThreeSale selectLatestByWorkerIdAndState(@Param("workerId") Long workerId,@Param("state") int state);
|
| | | |
| | | ThreeSale selectLatestByWorkerIdAndState(@Param("workerId") Long workerId, @Param("state") int state);
|
| | |
|
| | | /**
|
| | | * 根据时间查询邀请关系
|
| | | * @param uid
|
| | |
| | | * @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);
|
| | | |
| | | void inviteSeparate(@Param("workerId") Long workerId, @Param("bossId") Long bossId);
|
| | |
|
| | | /**
|
| | | * 队员在该boss 下第几个队员序号
|
| | | * @param workerId
|
| | | * @return
|
| | | */
|
| | | long getTeamOrderNumByWorkerId(@Param("workerId") Long workerId);
|
| | | |
| | |
|
| | | /**
|
| | | * 有效粉丝uid
|
| | | * @param bossId
|
| | | * @param limitTime
|
| | | * @return
|
| | | */
|
| | | List<ThreeSale> getValidWorkerIdsByTime(@Param("uid") Long uid,@Param("limitTime") long limitTime);
|
| | | List<ThreeSale> getValidWorkerIdsByTime(@Param("uid") Long uid, @Param("limitTime") long limitTime);
|
| | |
|
| | | /**
|
| | | * 查询所有列表
|
| | | * @Title: listAll
|
| | | * @Description: |
| | | * @param start
|
| | | * @param count
|
| | | * @return |
| | | * List<ThreeSale> 返回类型
|
| | | * @throws
|
| | | */
|
| | | List<ThreeSale> listAll(@Param("minTime") Long minTime, @Param("maxTime") Long maxTime, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | long countAll(@Param("minTime") Long minTime, @Param("maxTime") Long maxTime);
|
| | |
|
| | |
|
| | | /**
|
| | | * 查询所有bossID
|
| | | * @return
|
| | | */
|
| | | List<Long> getAllBossId();
|
| | |
|
| | | } |