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/MaterialController.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/MaterialController.java b/src/main/java/com/whyc/controller/MaterialController.java
index 9454988..a6967d0 100644
--- a/src/main/java/com/whyc/controller/MaterialController.java
+++ b/src/main/java/com/whyc/controller/MaterialController.java
@@ -11,6 +11,7 @@
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
@@ -97,4 +98,16 @@
         Material material = ActionUtil.getGson().fromJson(materialStr, Material.class);
         return service.updatePicOrDwg(file,material);
     }
+
+    @PostMapping("checkNaming")
+    @ApiOperation("鍛藉悕瑙勮寖鏍¢獙")
+    public void checkNaming( HttpServletResponse response,@RequestParam MultipartFile file) throws IOException, InvalidFormatException {
+        service.checkNaming(file.getInputStream(),response);
+    }
+
+    @ApiOperation("鐗╂枡鎺ㄩ�佸脊绐椾娇鐢�")
+    @GetMapping("getMaterialDialog")
+    public Response getMaterialDialog(@RequestParam String subCode,@RequestParam String subName,@RequestParam String subModel)  {
+        return service.getMaterialDialog(subCode,subName,subModel);
+    }
 }

--
Gitblit v1.9.1