From abc8131e9279c5a5bdcf90dcca56004e8643fb1c Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期二, 23 七月 2024 10:34:43 +0800
Subject: [PATCH] 不良品录入

---
 src/main/java/com/whyc/controller/DefectiveProductsController.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/DefectiveProductsController.java b/src/main/java/com/whyc/controller/DefectiveProductsController.java
index f0d07e1..ddb7434 100644
--- a/src/main/java/com/whyc/controller/DefectiveProductsController.java
+++ b/src/main/java/com/whyc/controller/DefectiveProductsController.java
@@ -3,6 +3,7 @@
 import com.whyc.dto.Response;
 import com.whyc.pojo.BOMFeedback;
 import com.whyc.pojo.DefectiveProducts;
+import com.whyc.pojo.DefectiveProductsHistory;
 import com.whyc.service.BOMFeedbakService;
 import com.whyc.service.DefectiveProductsService;
 import com.whyc.util.ActionUtil;
@@ -30,4 +31,10 @@
         DefectiveProducts defective= ActionUtil.getGson().fromJson(defectiveJson, DefectiveProducts.class);
         return service.addDefective(defective,multipartFileList);
     }
+
+    @ApiOperation("澶勭悊涓嶈壇鍝�")
+    @PostMapping("updateDefective")
+    public Response updateDefective(@RequestBody DefectiveProductsHistory defectiveHis) throws IOException, MessagingException {
+        return service.updateDefective(defectiveHis);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1