From f858b8cdb2011ec7f8495aa3beebef9ec958af3b Mon Sep 17 00:00:00 2001 From: zhou-hao Date: Mon, 28 Sep 2020 19:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DorderBy=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hswebframework/web/api/crud/entity/QueryParamEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));