pagehelper / Mybatis-PageHelper

Mybatis通用分页插件
https://mybatis.io
MIT License
12.21k stars 3.13k forks source link

fix: 在复制countBoundSql的时候,复制additionalParameter #837

Closed yuzhi-jiang closed 2 months ago

yuzhi-jiang commented 2 months ago

countBoundSql没有赋值additionalParameters,导致 foreach之类得到的额外参数(产生临时的参数),无法被复制到countBoundSql,然后在executeAutoCount中又取复制后的additionalParameters(此时这里的数据是空的) image

原复制BoundSql: image

executeAutoCount: image