From f92783da5430037bf80cf28a5cf7091cdecefbb7 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期五, 09 五月 2025 09:23:51 +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