Tag

PageInfo

1 views collected around this technical thread.

JD Tech
JD Tech
Mar 6, 2024 · Backend Development

Fixing Incorrect Total Count in PageHelper Pagination Using PageInfo

This article analyzes why the total record count returned by PageHelper mismatches the actual number of rows, examines the underlying PageInfo and PageSerializable source code, and provides a concrete solution that avoids type conversion and directly constructs PageInfo from the mapper result to ensure accurate pagination.

DebuggingJavaMyBatis
0 likes · 7 min read
Fixing Incorrect Total Count in PageHelper Pagination Using PageInfo