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 list); /** * 批量选择更新 * @param list * @return */ int updateBatchSelective(List list); /** * 根据条件查询标签 * @return */ List listShamUserByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key); long countShamUserByKey(@Param("key") String key); List listByDistinctPicUrl(@Param("start")long start, @Param("count")int count); // 随机取出数据 List listRand(@Param("count") int count); }