Skip to content

Commit 70a97f8

Browse files
committed
Server:解决为字段加别名出错
1 parent 567c401 commit 70a97f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ public String getColumnString() throws Exception {
535535
String alias;
536536
int index;
537537
for (int j = 0; j < ckeys.length; j++) {
538-
index = isColumn ? -1 : ckeys[j].indexOf(":"); //StringUtil.split返回数组中,子项不会有null
538+
index = ckeys[j].lastIndexOf(":"); //StringUtil.split返回数组中,子项不会有null
539539
origin = index < 0 ? ckeys[j] : ckeys[j].substring(0, index);
540540
alias = index < 0 ? null : ckeys[j].substring(index + 1);
541541

0 commit comments

Comments
 (0)