R - Q - public interface ListQueryService<R,Q>
| 限定符和类型 | 方法和说明 |
|---|---|
tk.mybatis.mapper.common.Mapper |
getMapper()
返回数据操作对象
|
default List<R> |
listQuery(Q query)
查询列表
|
default com.github.pagehelper.PageInfo<R> |
listQuery(Q query,
int size)
查询列表
|
default com.github.pagehelper.PageInfo<R> |
listQuery(Q query,
int pageIndex,
int pageSize)
查询列表
|
default long |
listQueryCount(Q query)
使用查询对象统计数量, 对于大量数据性能可能表现不好,建议另建专用方法
|
default R |
listQueryOne(Q query)
查询列表中的第一项
|
tk.mybatis.mapper.common.Mapper getMapper()
default com.github.pagehelper.PageInfo<R> listQuery(Q query, int size)
query - size - default com.github.pagehelper.PageInfo<R> listQuery(Q query, int pageIndex, int pageSize)
query - pageIndex - pageSize - default long listQueryCount(Q query)
query - Copyright © 2025. All rights reserved.