소스 검색

doNotSort

zhou-hao 4 년 전
부모
커밋
bfe93109bf
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      hsweb-commons/hsweb-commons-api/src/main/java/org/hswebframework/web/api/crud/entity/QueryParamEntity.java

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