| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.ShamUser; |
| | | |
| | | public interface ShamUserMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ShamUser record); |
| | | |
| | | int insertSelective(ShamUser record); |
| | | |
| | | ShamUser selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ShamUser record); |
| | | |
| | | int updateByPrimaryKey(ShamUser record); |
| | | |
| | | /** |
| | | * 根据条件查询标签 |
| | | * @return |
| | | */ |
| | | List<ShamUser> listShamUserByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | long countShamUserByKey(@Param("key") String key); |
| | | |
| | | |
| | | List<ShamUser> listByDistinctPicUrl(@Param("start")long start, @Param("count")int count); |
| | | |
| | | // 随机取出数据 |
| | | List<ShamUser> listRand(@Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.ShamUser;
|
| | |
|
| | | public interface ShamUserMapper {
|
| | | |
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(ShamUser record);
|
| | |
|
| | | int insertSelective(ShamUser record);
|
| | |
|
| | | ShamUser selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(ShamUser record);
|
| | |
|
| | | int updateByPrimaryKey(ShamUser record);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<ShamUser> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<ShamUser> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据条件查询标签
|
| | | * @return
|
| | | */
|
| | | List<ShamUser> listShamUserByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | | |
| | | long countShamUserByKey(@Param("key") String key);
|
| | | |
| | | |
| | | List<ShamUser> listByDistinctPicUrl(@Param("start")long start, @Param("count")int count);
|
| | | |
| | | // 随机取出数据
|
| | | List<ShamUser> listRand(@Param("count") int count);
|
| | | |
| | | /**
|
| | | * 检出所有
|
| | | * @return
|
| | | */
|
| | | List<ShamUser> listAll();
|
| | | |
| | | } |