Pagehelper进行分页返回条数 不正确

1、查询第一页 20条数据,返回5条

根本原因是mybatis SQL 映射错了,

<select id="getAllDistribution" resultMap="BaseResultMap">

</select>

BaseResultMap 下的

<collection> id 重复了

猜你喜欢

转载自blog.csdn.net/zhw0596/article/details/106098226