| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | |
| | | * @return |
| | | */ |
| | | UserInviteValidRecord selectByUniqueKey(@Param("uniqueKey")String uniqueKey); |
| | | |
| | | |
| | | /** |
| | | * 查询用户下的有效粉丝 |
| | | * @param uid |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<Long> getValidWorkerIdsByUid(@Param("uid")Long uid,@Param("list") List<Long> list,@Param("type")Integer type); |
| | | |
| | | |
| | | /** |
| | | * 分页查询有效粉丝记录 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserInviteValidRecord> listByTypeAndUid(@Param("start")long start, @Param("count")int count, |
| | | @Param("uid")Long uid, @Param("type")int type); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询有效关系 |
| | | * @param uid |
| | | * @param workerId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | UserInviteValidRecord getByUidAndWorkerId(@Param("uid")Long uid, @Param("workerId")Long workerId, @Param("type")int type); |
| | | |
| | | |
| | | } |