| | |
| | | package com.yeshi.fanli.dao.mybatis.user.vip;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo;
|
| | |
|
| | | public interface UserVIPPreInfoMapper extends BaseMapper<UserVIPPreInfo> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID与进度检索
|
| | | * |
| | | * @param uid
|
| | | * @param procress
|
| | | * @return
|
| | | */
|
| | | UserVIPPreInfo selectByUidAndProcess(@Param("uid") Long uid, @Param("process") int process);
|
| | |
|
| | | /**
|
| | | * 根据用户ID检索
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserVIPPreInfo> listByUid(@Param("uid") Long uid);
|
| | |
|
| | | package com.yeshi.fanli.dao.mybatis.user.vip; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo; |
| | | |
| | | public interface UserVIPPreInfoMapper extends BaseMapper<UserVIPPreInfo> { |
| | | |
| | | /** |
| | | * 根据用户ID与进度检索 |
| | | * |
| | | * @param uid |
| | | * @param procress |
| | | * @return |
| | | */ |
| | | UserVIPPreInfo selectByUidAndProcess(@Param("uid") Long uid, @Param("process") int process); |
| | | |
| | | /** |
| | | * 根据用户ID检索 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserVIPPreInfo> listByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据进度查询 |
| | | * @Title: listByProcess |
| | | * @Description: |
| | | * @param process |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | * List<UserVIPPreInfo> 返回类型 |
| | | * @throws |
| | | */ |
| | | List<UserVIPPreInfo> listByProcess(@Param("process") int process, @Param("minTime") Date minTime, |
| | | @Param("maxTime") Date maxTime, @Param("start") long start, @Param("count") int count); |
| | | |
| | | long countByProcess(@Param("process") int process, @Param("minTime") Date minTime, @Param("maxTime") Date maxTime); |
| | | |
| | | } |