DataSqlSource命名优化

This commit is contained in:
Redkale
2023-01-15 23:11:16 +08:00
parent 19c8ffb79d
commit f5d79c7035

View File

@@ -2535,10 +2535,10 @@ public abstract class DataSqlSource extends AbstractDataSource implements Functi
return CompletableFuture.completedFuture(rs); return CompletableFuture.completedFuture(rs);
} }
} }
return findsComposeAsync(info, selects, pks); return findsDBAsync(info, selects, pks);
} }
protected <T> CompletableFuture<T[]> findsComposeAsync(final EntityInfo<T> info, final SelectColumn selects, Serializable... pks) { protected <T> CompletableFuture<T[]> findsDBAsync(final EntityInfo<T> info, final SelectColumn selects, Serializable... pks) {
final Attribute<T, Serializable> primary = info.getPrimary(); final Attribute<T, Serializable> primary = info.getPrimary();
return queryListAsync(info.getType(), selects, null, FilterNode.create(info.getPrimarySQLColumn(), FilterExpress.IN, pks)).thenApply(list -> { return queryListAsync(info.getType(), selects, null, FilterNode.create(info.getPrimarySQLColumn(), FilterExpress.IN, pks)).thenApply(list -> {
T[] rs = info.getArrayer().apply(pks.length); T[] rs = info.getArrayer().apply(pks.length);