package com.smartearth.poiexcel.mapper;
|
|
import com.smartearth.poiexcel.entity.EntEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* 企业Mapper
|
* @author WWW
|
*/
|
@Mapper
|
@Repository
|
public interface QiYeMapper {
|
/**
|
* 根据名称模糊查询
|
*
|
* @param name
|
* @return
|
*/
|
public List<EntEntity> selectByName(@Param("name") String name);
|
|
/**
|
* 查询行数
|
*
|
* @return
|
*/
|
public Integer selectCount();
|
|
/**
|
* 分页查询
|
*
|
* @param limit
|
* @param offset
|
* @return
|
*/
|
public List<EntEntity> selectByPage(@Param("limit") Integer limit, @Param("offset") Integer offset);
|
|
/**
|
* 更新一条
|
*
|
* @param entity
|
* @return
|
*/
|
public Integer update(EntEntity entity);
|
|
/**
|
* 更新多条
|
*
|
* @param list
|
* @return
|
*/
|
public Integer updates(List<EntEntity> list);
|
}
|