mybatis一对多关联查询+pagehelper->分页错误。

现象:

mybatis一对多关联查询+pagehelper->分页错误

网上其他人遇到的类似问题:https://segmentfault.com/q/1010000009692585

解决:

pagehelper不支持这种查询:

https://github.com/pagehelper/Mybatis-PageHelper/issues/186

暂时解决方案:

collection标签里使用select属性指定子查询(缺点:查询次数增多)

todo:

实现自己的分页插件

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-02-27
  • 2022-12-23
  • 2021-05-04
  • 2021-05-31
猜你喜欢
  • 2021-07-04
  • 2021-06-27
  • 2021-12-24
  • 2022-12-23
  • 2021-05-05
  • 2021-09-21
  • 2022-12-23
相关资源
相似解决方案