mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-08 01:48:21 +08:00
修复page方法会打印两次count语句的问题
This commit is contained in:
@@ -467,7 +467,7 @@ public class SQLModule extends HashMap<String, SQLModule> implements MagicModule
|
||||
assertDatasourceNotNull();
|
||||
Dialect dialect = dataSourceNode.getDialect(dialectAdapter);
|
||||
BoundSql countBoundSql = boundSql.copy(dialect.getCountSql(boundSql.getSql()));
|
||||
int count = countBoundSql.getCacheValue(this.sqlInterceptors, () -> selectInt(countBoundSql));
|
||||
int count = selectInt(countBoundSql);
|
||||
return page(count, boundSql, page, dialect);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user