北京经济技术开发区经开区虚拟城市项目-【后端】-服务,Poi,企业,地块等定制接口
13693261870
2023-10-07 a093b470d5f9ce57c05ad610312d4af69688a18b
src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java
@@ -2,7 +2,10 @@
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;
/**
 * 企业接口映射类
@@ -12,4 +15,43 @@
@Mapper
@Repository
public interface EntMapper extends BasicMapper<EntEntity> {
    /**
     * 根据名称模糊查询
     *
     * @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);
}