Fixiaobai
2023-10-30 10e199f950f5c74b25e446433ceb51cffe675be4
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);
   }