Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置超出数据页码范围pageNo,isLastPage的计算错误 #822

Open
1 task
maganto1 opened this issue Jun 26, 2024 · 0 comments
Open
1 task

设置超出数据页码范围pageNo,isLastPage的计算错误 #822

maganto1 opened this issue Jun 26, 2024 · 0 comments

Comments

@maganto1
Copy link

  • 我已在 issues 搜索类似问题,并且不存在相同的问题.

异常模板

使用环境

  • PageHelper 版本: 5.3.3.1
  • 数据库类型和版本: MYSQL 8.0
  • JDBC_URL: jdbc:mysql://localhost:3306/test?allowMultiQueries=true&serverTimezone=Asia/Shanghai

SQL 解析错误

分页参数

        PageInfo<TestResult> pageInfo = PageMethod.startPage(query.getPageNo(),
                query.getPageSize())
            .doSelectPageInfo(() -> testService.getList(query));

Snipaste_2024-06-26_16-14-14

功能建议

设置一个超出查询范围的pageNo,返回的pageInfo信息 isLastPage 是false,而不是true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant