forked from github/dataease
fix: SQL中order by关键字处理
This commit is contained in:
parent
a09b928cbf
commit
cf9d5e5d9c
@ -290,7 +290,7 @@ public class DatasetDataManage {
|
||||
if (ObjectUtils.isEmpty(list)) {
|
||||
return null;
|
||||
}
|
||||
sql = SQLUtils.buildOriginPreviewSqlWithOrderBy(sql, 100, 0, list.get(0).getOriginName() + " ASC ");
|
||||
sql = SQLUtils.buildOriginPreviewSqlWithOrderBy(sql, 100, 0, String.format(SQLConstants.FIELD_DOT, list.get(0).getOriginName()) + " ASC ");
|
||||
} else {
|
||||
sql = SQLUtils.buildOriginPreviewSql(sql, 100, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user