From cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 25 六月 2025 11:18:22 +0800 Subject: [PATCH] 验收报告修改 --- src/main/java/com/whyc/controller/ProductBomApprovingController.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/whyc/controller/ProductBomApprovingController.java b/src/main/java/com/whyc/controller/ProductBomApprovingController.java index efbe295..2ac13ba 100644 --- a/src/main/java/com/whyc/controller/ProductBomApprovingController.java +++ b/src/main/java/com/whyc/controller/ProductBomApprovingController.java @@ -3,15 +3,11 @@ import com.whyc.dto.Response; import com.whyc.pojo.ProductBomApproving; import com.whyc.service.ProductBomApprovingService; -import com.whyc.util.Zip4jUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; @@ -47,9 +43,14 @@ @PostMapping("zipParse") @ApiOperation("zip瑙f瀽") - public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException { + public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException { return service.zipParse(file); } + @GetMapping("dwgReview") + @ApiOperation("dwg鏂囦欢棰勮") + public Response dwgReview(@RequestParam String dwgUrl) throws IOException { + return service.dwgReview(dwgUrl); + } } -- Gitblit v1.9.1