修复orderBy失效

This commit is contained in:
zhou-hao
2020-09-28 19:44:32 +08:00
parent c11b7df3e9
commit f858b8cdb2

View File

@@ -168,7 +168,7 @@ public class QueryParamEntity extends QueryParam {
*/
public void setOrderBy(String orderBy) {
this.orderBy = orderBy;
if (StringUtils.isEmpty(where)) {
if (StringUtils.isEmpty(orderBy)) {
return;
}
setSorts(TermExpressionParser.parseOrder(orderBy));