From 44e8dc5253c53d0e1a5611212115deb550a5fe21 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Tue, 23 May 2023 16:02:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20groupBy=20?= =?UTF-8?q?=D0=BF=D0=BE=20=D0=BF=D0=BE=D0=BB=D1=8F=D0=BC=20=D1=81=D0=BE?= =?UTF-8?q?=D1=80=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../struchkov/haiti/filter/quarkus/QuarkusFilter.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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);