T - 实体类@RegisterMapper public interface SelectPageMapper<T>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
selectPage(T condition,
int offset,
int pageSize,
List<app.myoss.cloud.core.lang.dto.Order> orders)
根据条件分页查询匹配的实体对象
|
List<T> |
selectPage2(T condition,
Map<String,Object> extraCondition,
int offset,
int pageSize,
List<app.myoss.cloud.core.lang.dto.Order> orders)
根据条件分页查询匹配的实体对象
|
@SelectProvider(type=SelectMapperTemplate.class, method="dynamicSql") List<T> selectPage(@Param(value="condition") T condition, @Param(value="offset") int offset, @Param(value="pageSize") int pageSize, @Param(value="orders") List<app.myoss.cloud.core.lang.dto.Order> orders)
condition - 匹配的条件offset - 记录行的偏移量(SELECT * FROM table LIMIT 0,10; // 检索记录行 1-10)pageSize - 分页的条数orders - 排序字段SelectMapperTemplate.selectPage(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)@SelectProvider(type=SelectMapperTemplate.class, method="dynamicSql") List<T> selectPage2(@Param(value="condition") T condition, @Param(value="extraCondition") Map<String,Object> extraCondition, @Param(value="offset") int offset, @Param(value="pageSize") int pageSize, @Param(value="orders") List<app.myoss.cloud.core.lang.dto.Order> orders)
condition - 匹配的条件extraCondition - 扩展查询条件,需要自定义offset - 记录行的偏移量(SELECT * FROM table LIMIT 0,10; // 检索记录行 1-10)pageSize - 分页的条数orders - 排序字段SelectMapperTemplate.selectPage2(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2021. All rights reserved.