Преглед на файлове

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

聂秋秋 преди 5 години
родител
ревизия
17fae7eeae
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/executor/MybatisCachingExecutor.java

+ 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);