增加no-paging

This commit is contained in:
zhouhao
2018-07-06 18:13:11 +08:00
parent dd81913490
commit c8417fee22

View File

@@ -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)