diff --git a/pom.xml b/pom.xml index dcf7fa4..adf2ca2 100644 --- a/pom.xml +++ b/pom.xml @@ -312,7 +312,7 @@ https://github.com/haiti-projects/haiti-filter-reactive-quarkus scm:git:https://github.com/haiti-projects/haiti-filter-reactive-quarkus.git - HEAD + HEAD diff --git a/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java b/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java index 40be8a7..b36a8aa 100644 --- a/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java +++ b/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java @@ -14,7 +14,6 @@ import org.jooq.DSLContext; import org.jooq.Query; import org.jooq.conf.ParamType; -import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.function.Consumer; @@ -30,7 +29,7 @@ public class QuarkusFilter { private final PgPool pgPool; private final CriteriaJooqFilter jooqFilter; private PageableOffset offset; - private final List sortFieldNames = new ArrayList<>(); +// private final List sortFieldNames = new ArrayList<>(); private QuarkusFilter(PgPool pgPool, String table, DSLContext dslContext) { dslContext.settings().withParamType(ParamType.NAMED_OR_INLINED); @@ -83,7 +82,7 @@ public class QuarkusFilter { public QuarkusFilter sort(SortContainer container) { if (container != null && container.getFieldName() != null) { jooqFilter.sort(container); - sortFieldNames.add(container.getFieldName()); +// sortFieldNames.add(container.getFieldName()); } return this; } @@ -91,7 +90,7 @@ public class QuarkusFilter { public QuarkusFilter sort(String field, SortType sortType) { if (field != null) { jooqFilter.sort(field, sortType); - sortFieldNames.add(field); +// sortFieldNames.add(field); } return this; } @@ -99,7 +98,7 @@ public class QuarkusFilter { public QuarkusFilter sort(String field) { if (field != null) { jooqFilter.sort(field); - sortFieldNames.add(field); +// sortFieldNames.add(field); } return this; } @@ -136,7 +135,7 @@ public class QuarkusFilter { public Uni> filterResult(Class idType, String idField) { jooqFilter.groupBy(tableName + "." + idField); - jooqFilter.groupBy(sortFieldNames); +// jooqFilter.groupBy(sortFieldNames); distinctCount = true; final Uni count = count(); final Uni> content = build(idType, idField);