fix: SQL中order by关键字处理

This commit is contained in:
junjun 2023-10-27 12:03:06 +08:00
parent a09b928cbf
commit cf9d5e5d9c

View File

@ -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);
}