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

会出现rows有数据但是total的数量等于0的情况 #153

Open
didi12121 opened this issue Nov 20, 2022 · 4 comments
Open

会出现rows有数据但是total的数量等于0的情况 #153

didi12121 opened this issue Nov 20, 2022 · 4 comments

Comments

@didi12121
Copy link

image
如图所示,但是下一次请求就是正常的,不知道是具有偶发性还是什么情况

@abel533
Copy link
Collaborator

abel533 commented Nov 20, 2022

大概率是从分页结果中转换时没取total。

@didi12121
Copy link
Author

大概率是从分页结果中转换时没取total。

昨天调试了一下,200个请求一半有一半没有😂😂😂,count 统计之后有set 到page 里面,但是最后返回的page 还是0

@abel533
Copy link
Collaborator

abel533 commented Jan 2, 2023

没有时,是不是没有进行分页?

@Greenjiao
Copy link

我遇到这个情况是在springboot3.x版本使用pagehelper,跟着源码debug看到正常也set了但是最后出来的那个page还是0,看更新改到1.4.6的pagehelper后正常了

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