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

为什么通用方法里没有分页查询? #116

Open
LastLighter opened this issue Jul 25, 2024 · 1 comment
Open

为什么通用方法里没有分页查询? #116

LastLighter opened this issue Jul 25, 2024 · 1 comment

Comments

@LastLighter
Copy link

我查看了mapper通用方法的文档,但是没有发现有对数据表进行分页查询的方法。
感觉上这是个开发中挺常用的功能。
后续会考虑加上吗?

@abel533
Copy link
Contributor

abel533 commented Jul 25, 2024

分页需要支持多种数据库,配合分页插件使用:https://github.com/pagehelper/Mybatis-PageHelper

如果一定会分页,可以用RowBounds,或者PageRowBounds参数。配合分页插件自动转换为物理分页。

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

2 participants