From fc6f00e2704968486a6555b197f2f314fbfb9c50 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Thu, 3 Aug 2023 18:59:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96nativeSQL?= =?UTF-8?q?=E5=88=AB=E5=90=8D=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/hswebframework/web/crud/query/QueryAnalyzerImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/query/QueryAnalyzerImpl.java b/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/query/QueryAnalyzerImpl.java index 486773619..9f2d0d7f7 100644 --- a/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/query/QueryAnalyzerImpl.java +++ b/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/query/QueryAnalyzerImpl.java @@ -117,6 +117,8 @@ private Map getColumnMappings() { if (!(column instanceof ExpressionColumn) && column.metadata != null) { columnMappings.put(column.metadata.getName(), col); columnMappings.put(select.table.alias + "." + column.metadata.getName(), col); + columnMappings.put(column.metadata.getAlias(), col); + columnMappings.put(select.table.alias + "." + column.metadata.getAlias(), col); } }