zhou-hao vor 7 Jahren
Ursprung
Commit
fc2f8a9efa

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

@@ -76,6 +76,14 @@ public interface QueryController<E, PK, Q extends Entity> {
         return ok(getService().selectPager(param));
     }
 
+    @Authorize(action = Permission.ACTION_QUERY)
+    @GetMapping("/no-paging")
+    @AccessLogger("{dynamic_query}")
+    @ApiOperation(value = "不分页动态查询数据", responseReference = "get")
+    default ResponseMessage<List<E>> listNoPaging(Q param) {
+        return ok(getService().select(param));
+    }
+
     @Authorize(action = Permission.ACTION_QUERY)
     @GetMapping("/count")
     @AccessLogger("{dynamic_query}")