abel533 / Mybatis-Spring

这是一个集成了Mybatis分页插件和通用Mapper的示例项目
941 stars 610 forks source link

selectByExampleAndRowBounds方法bug #38

Open RRZXX opened 5 years ago

RRZXX commented 5 years ago

在使用selectByExampleAndRowBounds方法时,出现bug 第二个参数RowBounds rowBounds正常传递offset和limit,offset超过2(>=3)开始,就会有bug,比如数据重复,或者跳过了中间的几页 打开了mybatis执行日志,结果是mysql limit ?,? 中的前一个问号,计算错误。 从3.xx升级到了4.12,仍然有这个问题,还请看下,是什么原因导致的