mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-01 18:35:37 +08:00
增加no-paging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user