createPageCountSql

This commit is contained in:
redkale
2024-06-06 14:56:32 +08:00
parent a358e5bf01
commit f3896483ad
2 changed files with 3 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ public abstract class AbstractDataSqlSource extends AbstractDataSource
readConfProps.getProperty(DATA_SOURCE_SLOWMS_ERROR, "3000").trim());
}
protected <T> PageCountSql filterPageCountSql(
protected <T> PageCountSql createPageCountSql(
EntityInfo<T> info,
final boolean readCache,
boolean needTotal,

View File

@@ -2390,7 +2390,7 @@ public class DataJdbcSource extends AbstractDataSqlSource {
try {
conn = readPool.pollConnection();
conn.setAutoCommit(true);
PageCountSql sqls = filterPageCountSql(info, readCache, needTotal, distinct, sels, tables, flipper, node);
PageCountSql sqls = createPageCountSql(info, readCache, needTotal, distinct, sels, tables, flipper, node);
try {
return executeQuerySheet(info, needTotal, flipper, sels, s, conn, sqls);
} catch (SQLException se) {
@@ -2429,7 +2429,7 @@ public class DataJdbcSource extends AbstractDataSqlSource {
}
// 重新查询一次
sqls = filterPageCountSql(info, readCache, needTotal, distinct, sels, tables, flipper, node);
sqls = createPageCountSql(info, readCache, needTotal, distinct, sels, tables, flipper, node);
return executeQuerySheet(info, needTotal, flipper, sels, s, conn, sqls);
} else {
throw new SourceException(se);