瀏覽代碼

excel模板导出和数据导出是post请求

大数据与最优化研究所 1 周之前
父節點
當前提交
2393a243fa
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/main/java/com/xjrsoft/module/form/controller/FormExecuteController.java

+ 6 - 6
src/main/java/com/xjrsoft/module/form/controller/FormExecuteController.java

@@ -235,14 +235,14 @@ public class FormExecuteController {
         return R.ok(formExecuteService.workFlowInfo(dto));
     }
 
-    @GetMapping(value = "/export")
-    @ApiOperation(value = "导出")
-    @XjrLog(value = "导出表单数据")
-    public ResponseEntity<byte[]> export(@Valid FormExecuteListDto dto) throws IOException {
-//    @PostMapping(value = "/export")
+//    @GetMapping(value = "/export")
 //    @ApiOperation(value = "导出")
 //    @XjrLog(value = "导出表单数据")
-//    public ResponseEntity<byte[]> export(@Valid @RequestBody FormExecuteListDto dto) throws IOException {
+//    public ResponseEntity<byte[]> export(@Valid FormExecuteListDto dto) throws IOException {
+    @PostMapping(value = "/export")
+    @ApiOperation(value = "导出")
+    @XjrLog(value = "导出表单数据")
+    public ResponseEntity<byte[]> export(@Valid @RequestBody FormExecuteListDto dto) throws IOException {
         FormRelease formRelease = formReleaseService.getById(dto.getReleaseId());
         FormReleaseConfig formReleaseConfig = JSONUtil.toBean(formRelease.getConfigJson(), FormReleaseConfig.class);
         // 配置excel第一行字段名