From a915c14dafebeb823294935755b6646a2ca76ff9 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期六, 04 十一月 2023 17:41:19 +0800
Subject: [PATCH] 参数
---
mes-technology/src/main/java/com/chinaztt/mes/technology/controller/DocumentController.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/mes-technology/src/main/java/com/chinaztt/mes/technology/controller/DocumentController.java b/mes-technology/src/main/java/com/chinaztt/mes/technology/controller/DocumentController.java
index 827347c..81d2a43 100644
--- a/mes-technology/src/main/java/com/chinaztt/mes/technology/controller/DocumentController.java
+++ b/mes-technology/src/main/java/com/chinaztt/mes/technology/controller/DocumentController.java
@@ -37,7 +37,6 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -258,7 +257,7 @@
* @return
*/
@PostMapping("/uploadJgt")
- public R uploadJgt(@RequestParam("file") List<MultipartFile> file, @RequestParam("documentId") Long documentId) {
+ public R uploadJgt(@RequestParam("file") MultipartFile file, @RequestParam("documentId") Long documentId) {
return documentService.uploadJgt(file, documentId);
}
@@ -301,9 +300,9 @@
* @param fileName
* @param response
*/
- @Inner(false)
- @GetMapping("/file/{fileName}")
- public void file(@PathVariable String fileName, HttpServletResponse response) {
+ @Inner(value = false)
+ @GetMapping("/file")
+ public void file(@RequestParam("fileName") String fileName, HttpServletResponse response) {
documentService.getFile(fileName, response);
}
--
Gitblit v1.9.3