mybatis 分页失败 始终pageSize = 2147483647

是在使用分页查询时

this.jobReadMapper.beginPager(pageParam);
XXXXXXXXXXXXXXXXXXXXXXXX
this.xxxReadMapper.queryById(xxx);
this.jobReadMapper.endPager(this.jobReadMapper.searchJobBase(po));
中间使用了其他查询条件导致分页失败

在分页查询参数需要转换时,参数应提前准备不应放置在beginPager和 endPager之间处理

 

posted @ 2020-04-14 10:53  foola  阅读(839)  评论(0)    收藏  举报