分页
public Result findAllActiveThree(Xxx xxx) {
// 开启分页
PageHelper.startPage(xxx.getPageNum(), xxx.getPageSize());
// 动态查询全部
List<xxx> list = xxxMapper.selectAll(xxx);
// 创建分页对象
PageInfo<xxx> pageInfo = new PageInfo<>(list);
return Result.success(pageInfo);
}