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

在gormt中使用分页查询 #189

Open
jiang4869 opened this issue Jan 5, 2022 · 3 comments
Open

在gormt中使用分页查询 #189

jiang4869 opened this issue Jan 5, 2022 · 3 comments

Comments

@jiang4869
Copy link
Collaborator

关于分页查询的使用大家可以参考这个博客 gormt中分页查询的使用

@xxjwxc
Copy link
Owner

xxjwxc commented Jan 5, 2022

已更新到readme里面

@zcyc
Copy link

zcyc commented Mar 25, 2022

@jiang4869
您好,分页查询的条件只能 userMgr.withAge(age) 不能 userMgr.Where("age > ?",age) 吗?
userMgr.SelectPage(page, 这个地方的条件)

@jiang4869
Copy link
Collaborator Author

@jiang4869 您好,分页查询的条件只能 userMgr.withAge(age) 不能 userMgr.Where("age > ?",age) 吗? userMgr.SelectPage(page, 这个地方的条件)

可以这么用

model.UserMgr(db.where("age > ?",29)).SelectPage(page,xxxxxxx)

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

3 participants