pagehelper / pagehelper-spring-boot

pagehelper-spring-boot
MIT License
1.55k stars 311 forks source link

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

Open didi12121 opened 1 year ago

didi12121 commented 1 year ago

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

abel533 commented 1 year ago

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

didi12121 commented 1 year ago

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

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

abel533 commented 1 year ago

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

Greenjiao commented 1 year ago

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