Skip to content

Commit

Permalink
Fix the inconsistency issue between the values of parameters pageNum …
Browse files Browse the repository at this point in the history
…and pageSize in 'PageHelper#startPage' and the TableMetaMapper#selectTableRuntimesForOptimizerGroup,OptimizingMapper#selectOptimizingProcesses
  • Loading branch information
张文领 committed Nov 22, 2024
1 parent c12c240 commit 489f3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public Pair<List<OptimizingProcessInfo>, Integer> getOptimizingProcessesInfo(
tableIdentifier.getTableName(),
type,
status,
offset,
pageNumber,
limit));
PageInfo<OptimizingProcessMeta> pageInfo = new PageInfo<>(processMetaList);
total = (int) pageInfo.getTotal();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ public Pair<List<TableRuntimeMeta>, Integer> getTableRuntimes(
fuzzyDbName,
fuzzyTableName,
statusCodeFilters,
limit,
offset));
pageNumber,
limit));
PageInfo<TableRuntimeMeta> pageInfo = new PageInfo<>(ret);
total = (int) pageInfo.getTotal();
return Pair.of(ret, total);
Expand Down

0 comments on commit 489f3e4

Please sign in to comment.