Skip to content

Commit b2bf5d5

Browse files
committed
DISTINCT
1 parent 15cfe71 commit b2bf5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ public String getColumnString(boolean inSQLJoin) throws Exception {
992992
+ "不允许传超过 50 个字符的函数或表达式!请用 @raw 简化传参!");
993993
}
994994
// 原来的步骤迁移到了 下面这个方法中
995-
keys[i] = getColumnPrase(expression);
995+
keys[i] = getColumnPrase(expression);
996996
//
997997
// int start = expression.indexOf("(");
998998
// int end = 0;
@@ -3222,7 +3222,7 @@ else if (whereList != null && whereList.contains(key)) {
32223222

32233223
boolean distinct = column == null || rawColumnSQL != null ? false : column.startsWith(PREFFIX_DISTINCT);
32243224
if (rawColumnSQL == null) {
3225-
String[] fks = StringUtil.split(distinct ? column.substring(PREFFIX_DISTINCT.length()) : column, ";"); // key0,key1;fun0(key0,...);fun1(key0,...);key3;fun2(key0,...)
3225+
String[] fks = StringUtil.split(column, ";"); // key0,key1;fun0(key0,...);fun1(key0,...);key3;fun2(key0,...)
32263226
if (fks != null) {
32273227
String[] ks;
32283228
for (String fk : fks) {

0 commit comments

Comments
 (0)