Procházet zdrojové kódy

修复orderBy失效

zhou-hao před 4 roky
rodič
revize
f858b8cdb2

+ 1 - 1
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));