From 9d3a036d9331e325344b061f6d8a85b4f97a3671 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 17 May 2024 16:46:32 +0800 Subject: [PATCH] =?UTF-8?q?selectCompile=20=E5=A2=9E=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=87=8D=E8=BD=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9column=E5=8F=82=E6=95=B0=E5=81=9A=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/noear/wood/DbTableQueryBase.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wood/src/main/java/org/noear/wood/DbTableQueryBase.java b/wood/src/main/java/org/noear/wood/DbTableQueryBase.java index 2ba994c..8a408c4 100755 --- a/wood/src/main/java/org/noear/wood/DbTableQueryBase.java +++ b/wood/src/main/java/org/noear/wood/DbTableQueryBase.java @@ -692,7 +692,17 @@ public class DbTableQueryBase extends WhereBase i } protected DbQuery selectCompile(String columns) { - select_do(columns, true); + return selectCompile(columns, true); + } + + /** + * 查询编译 + * @param columns 查询的列 + * @param doFormat 是否对查询的列做格式化 + * @return + */ + protected DbQuery selectCompile(String columns, boolean doFormat) { + select_do(columns, doFormat); DbQuery rst = compile(); -- Gitee