Browse Source

增加no-paging

zhouhao 6 years ago
parent
commit
c8417fee22

+ 9 - 0
hsweb-system/hsweb-system-dynamic-form/hsweb-system-dynamic-form-web/src/main/java/org/hswebframework/web/controller/form/DynamicFormOperationController.java

@@ -13,6 +13,7 @@ import org.hswebframework.web.service.form.DynamicFormOperationService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -41,6 +42,14 @@ public class DynamicFormOperationController {
         return ResponseMessage.ok(dynamicFormOperationService.selectPager(formId, paramEntity));
     }
 
+    @GetMapping("/{formId}/no-paging")
+    @ApiOperation("不分页动态查询")
+    @Authorize(action = Permission.ACTION_QUERY)
+    public ResponseMessage<List<Object>> select(@PathVariable String formId, QueryParamEntity paramEntity) {
+        paramEntity.setPaging(false);
+        return ResponseMessage.ok(dynamicFormOperationService.select(formId, paramEntity));
+    }
+
     @GetMapping("/{formId}/single")
     @ApiOperation("动态查询返回单条数据")
     @Authorize(action = Permission.ACTION_QUERY)