Browse Source

doNotSort

zhou-hao 4 years ago
parent
commit
bfe93109bf

+ 5 - 0
hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java

@@ -207,6 +207,11 @@ public class QueryParamEntity extends QueryParam {
         return this;
     }
 
+    public QueryParamEntity doNotSort(){
+        this.setSorts(new ArrayList<>());
+        return this;
+    }
+
     @Override
     public QueryParamEntity clone() {
         return (QueryParamEntity) super.clone();