From 557c194519325fcdb475fa7043aa8a1a9a6b1592 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 1 Apr 2022 13:24:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=B3?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20FilterResult?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e770360..3f0d036 100644 --- a/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java +++ b/src/main/java/dev/struchkov/haiti/filter/quarkus/QuarkusFilter.java @@ -105,7 +105,7 @@ public class QuarkusFilter { } public Uni> build(Class idType, String idField) { - final Query query = jooqFilter.generateQuery(idField); + final Query query = jooqFilter.generateQuery(tableName + "." + idField); final String sql = query.getSQL(); return pgPool.preparedQuery(sql) .execute() @@ -135,7 +135,7 @@ public class QuarkusFilter { } public Uni> filterResult(Class idType, String idField) { - jooqFilter.groupBy(idField); + jooqFilter.groupBy(tableName + "." + idField); jooqFilter.groupBy(sortFieldNames); distinctCount = true; final Uni count = count();