MyBatis-Plus 分页实体Page类说明
public class Page implements IPage {
private static final long serialVersionUID = 8545996863226528798L;
protected List records;
protected long total;
protected long size;
protected long current;
protected List orders;
protected boolean optimizeCountSql;
protected boolean isSearchCount;
protected boolean hitCount;
protected String countId;
protected Long maxLimit;
records 查询数据
total 数据总条数
size 每页显示条数,默认 10
current 当前页,默认1
orders 排序字段信息
optimizeCountSql 自动优化 COUNT SQL,默认true
isSearchCount 是否进行 count 查询,默认true
hitCount 是否命中count缓存,默认false