8000 Server:解决JOIN中SQL语句的外层column不包括子表的 · f0restw0w/APIJSON@567c401 · GitHub
[go: up one dir, main page]

Skip to content

Commit 567c401

Browse files
committed
Server:解决JOIN中SQL语句的外层column不包括子表的
1 parent e64f2c4 commit 567c401

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

APIJSON-Java-Server/APIJSONLibrary/src/main/java/zuo/biao/apijson/server/AbstractSQLConfig.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,13 @@ public String getColumnString() throws Exception {
602602

603603
c = StringUtil.getString(keys);
604604

605-
return c.contains(":") == false ? c : c.replaceAll(":", " AS ") + (StringUtil.isEmpty(joinColumn, true) ? "" : ", " + joinColumn);//不能在这里改,后续还要用到:
605+
return (c.contains(":") == false ? c : c.replaceAll(":", " AS ")) + (StringUtil.isEmpty(joinColumn, true) ? "" : ", " + joinColumn);//不能在这里改,后续还要用到:
606606

607607
default:
608-
throw new UnsupportedOperationException("服务器内部错误:getColumnString 不支持 " + RequestMethod.getName(getMethod()) + " 等 [GET,GETS,HEAD,HEADS,POST] 外的ReuqestMethod!");
608+
throw new UnsupportedOperationException(
609+
"服务器内部错误:getColumnString 不支持 " + RequestMethod.getName(getMethod())
610+
+ " 等 [GET,GETS,HEAD,HEADS,POST] 外的ReuqestMethod!"
611+
);
609612
}
610613
}
611614

0 commit comments

Comments
 (0)
0