소스 검색

修复nopaging无效

zhouhao 6 년 전
부모
커밋
76a83cec7e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      hsweb-commons/hsweb-commons-controller/src/main/java/org/hswebframework/web/controller/QueryController.java

+ 3 - 0
hsweb-commons/hsweb-commons-controller/src/main/java/org/hswebframework/web/controller/QueryController.java

@@ -77,6 +77,9 @@ public interface QueryController<E, PK, Q extends Entity> {
     @GetMapping("/no-paging")
     @ApiOperation(value = "不分页动态查询", responseReference = "get")
     default ResponseMessage<List<E>> listNoPaging(Q param) {
+        if (param instanceof QueryParamEntity) {
+            ((QueryParamEntity) param).setPaging(false);
+        }
         return ok(getService().select(param));
     }