From f3b045cae4584861a618e8e9b44f96d7115c4929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Tue, 17 May 2022 12:11:56 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BF=AE=E5=A4=8D=20DAO=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BA=86=20loadColumns=20=E6=97=B6=E5=8F=88=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BA=86=20distinct=20=E6=97=B6=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=8E=B7=E5=BE=97=E6=AD=A3=E7=A1=AE=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/io/jboot/db/model/JbootModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/jboot/db/model/JbootModel.java b/src/main/java/io/jboot/db/model/JbootModel.java index 5230ea340..4e75fe799 100644 --- a/src/main/java/io/jboot/db/model/JbootModel.java +++ b/src/main/java/io/jboot/db/model/JbootModel.java @@ -769,7 +769,7 @@ private String getLoadColumns(String loadColumns) { //用户配置的 loadColumns 未包含 distinct 关键字 if (!loadColumns.toLowerCase().contains("distinct ")) { - loadColumns = "DISTINCT " + distinctColumn + "," + loadColumns; + loadColumns = "DISTINCT " + distinctColumn + ", " + loadColumns; } } }