diff --git a/hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java b/hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java index 8924f114b..20525b946 100644 --- a/hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java +++ b/hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java @@ -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));