Commit 4eebc458 by 李传峰

feat:[none] PageBeanNew bug

parent f01656cd
......@@ -65,6 +65,13 @@ public class ExecutorInterceptor extends AbstractInterceptor implements Initiali
queryArgs[ROWBOUNDS_INDEX] = new RowBounds(offset, limit);
BoundSql newBoundSql = new BoundSql(ms.getConfiguration(), sql, boundSql.getParameterMappings(), boundSql.getParameterObject());
if (CollectionUtils.isNotEmpty(boundSql.getParameterMappings())) {
for (ParameterMapping p : boundSql.getParameterMappings()) {
if (boundSql.hasAdditionalParameter(p.getProperty())) {
newBoundSql.setAdditionalParameter(p.getProperty(), boundSql.getAdditionalParameter(p.getProperty()));
}
}
}
MappedStatement newMs = copyFromMappedStatement(ms, new BoundSqlSqlSource(newBoundSql), false);
queryArgs[MAPPED_STATEMENT_INDEX] = newMs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment