From 10e199f950f5c74b25e446433ceb51cffe675be4 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期一, 30 十月 2023 09:57:07 +0800
Subject: [PATCH] Changes

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