//两表联查分页使用
List<GameOrderVo> list = baseMapper.selectVoPageXml(id);
// 计算起始索引和结束索引
int startIndex = (pageQuery.getPageNum() - 1) * pageQuery.getPageSize();
int endIndex = Math.min(startIndex + list.size(), list.size());
return TableDataInfo.build1(list.subList(startIndex,endIndex),list.size());
//返回调用方法 分页list数据 和 总条数
public static <T> TableDataInfo<T> build1(List<T> list,long total) {标签:分页,两表,list,startIndex,rspData,联查,TableDataInfo From: https://www.cnblogs.com/yangjieboke/p/17810272.html
TableDataInfo<T> rspData = new TableDataInfo<>();
rspData.setCode(HttpStatus.HTTP_OK);
rspData.setMsg("查询成功");
rspData.setRows(list);
rspData.setTotal(total);
return rspData;
}