浏览代码

返回值修改,减少对象创建.

聂秋秋 5 年之前
父节点
当前提交
17fae7eeae

+ 1 - 1
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/executor/MybatisCachingExecutor.java

@@ -157,7 +157,7 @@ public class MybatisCachingExecutor implements Executor {
                                 result = delegate.query(ms, parameterObject, rowBounds, resultHandler, key, boundSql);
                                 List<E> records = (List<E>) result;
                                 tcm.putObject(cache, cacheKey, page.getTotal());
-                                return new PageList(records, page.getTotal());
+                                return records;
                             }
                         }
                         return new PageList((List) result, 0L);