miemie %!s(int64=5) %!d(string=hai) anos
pai
achega
2351ac96d5

+ 1 - 1
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/plugins/chain/PageBeforeQuery.java

@@ -109,7 +109,7 @@ public class PageBeforeQuery implements BeforeQuery {
         return boundSql;
     }
 
-    private MappedStatement buildCountMappedStatement(MappedStatement ms) {
+    protected MappedStatement buildCountMappedStatement(MappedStatement ms) {
         MappedStatement.Builder builder = new MappedStatement.Builder(ms.getConfiguration(), ms.getId() + "_mpCount", ms.getSqlSource(), ms.getSqlCommandType());
         builder.resource(ms.getResource());
         builder.fetchSize(ms.getFetchSize());