提交 1a3a2455 authored 作者: inroi's avatar inroi

微调

上级 32b1c4e1
......@@ -30,7 +30,7 @@ public class TableRelationServiceImpl implements ITableRelationService {
List<TableRelationListOutVoRecords> result = tempList.stream()
.sorted(Comparator.comparing(TableRelationListOutVoRecords::getCreateTime).reversed())
.collect(Collectors.toList())
.subList(inVo.getPageNo() * inVo.getPageSize() - 10, inVo.getPageNo() * inVo.getPageSize());
.subList(inVo.getPageNo() * inVo.getPageSize() - 10, Math.min(inVo.getPageNo() * inVo.getPageSize(), tempList.size()));
TableRelationListOutVo outVo = new TableRelationListOutVo();
outVo.setTotal(tempList.size());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论