From b2e42ffd2e6225150c619780ee2958f5d12fd365 Mon Sep 17 00:00:00 2001 From: zhangtianxiao <920950604@qq.com> Date: Sun, 17 Feb 2019 15:39:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9A=E8=A0=A2=E7=9A=84smallint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zuo/biao/apijson/server/AbstractSQLConfig.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java b/APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java index 9be2743c1..df637c14e 100755 --- a/APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java +++ b/APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java @@ -1862,6 +1862,8 @@ public String getJoinString() throws Exception { if (joinList != null) { String quote = getQuote(); + List pvl = new ArrayList<>(); + boolean changed = false; String sql = null; SQLConfig jc; @@ -1898,7 +1900,10 @@ public String getJoinString() throws Exception { + quote + tn + quote + "." + quote + j.getTargetKey() + quote; jc.setMain(false).setKeyPrefix(true); - preparedValueList.addAll(jc.getPreparedValueList()); +// preparedValueList.addAll(jc.getPreparedValueList()); + + pvl.addAll(jc.getPreparedValueList()); + changed = true; break; case "": // FULL JOIN @@ -1916,6 +1921,13 @@ public String getJoinString() throws Exception { joinOns += " \n " + sql; } + + + if (changed) { + pvl.addAll(preparedValueList); + preparedValueList = pvl; + } + } return joinOns;