From a2cb0eed5a0bb7cf9d5eb8afe74f4ba6836205b4 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期二, 23 七月 2024 09:44:02 +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