File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
APIJSON-Java-Server/APIJSONORM/src/main/java/zuo/biao/apijson/server Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -866,17 +866,19 @@ public String getColumnString(boolean inSQLJoin) throws Exception {
866
866
}
867
867
868
868
//JOIN 副表不再在外层加副表名前缀 userId AS `Commet.userId`, 而是直接 userId AS `userId`
869
+ boolean isName = false ;
869
870
if (StringUtil .isNumer (origin )) {
870
871
//do nothing
871
872
}
872
873
else if (StringUtil .isName (origin )) {
873
874
origin = quote + origin + quote ;
875
+ isName = true ;
874
876
}
875
877
else {
876
878
origin = getValue (origin ).toString ();
877
879
}
878
880
879
- if (isKeyPrefix ()) {
881
+ if (isName && isKeyPrefix ()) {
880
882
ckeys [j ] = tableAlias + "." + origin ;
881
883
// if (isColumn) {
882
884
// ckeys[j] += " AS " + quote + (isMain() ? "" : tableAlias + ".") + (StringUtil.isEmpty(alias, true) ? origin : alias) + quote;
You can’t perform that action at this time.
0 commit comments