From 12d9277646a5eeafc20f18c6bb4ea8a855d4e2c1 Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期二, 23 七月 2024 15:48:36 +0800
Subject: [PATCH] 不良品推送修改

---
 src/main/java/com/whyc/controller/DefectiveProductsController.java |   21 +++++++++++++++++++++
 1 files changed, 21 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..b042212 100644
--- a/src/main/java/com/whyc/controller/DefectiveProductsController.java
+++ b/src/main/java/com/whyc/controller/DefectiveProductsController.java
@@ -1,8 +1,10 @@
 package com.whyc.controller;
 
+import com.whyc.dto.DefectiveDto;
 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 +32,23 @@
         DefectiveProducts defective= ActionUtil.getGson().fromJson(defectiveJson, DefectiveProducts.class);
         return service.addDefective(defective,multipartFileList);
     }
+
+    @ApiOperation("澶勭悊涓嶈壇鍝�")
+    @PostMapping("updateDefective")
+    public Response updateDefective(@RequestBody DefectiveProductsHistory defectiveHis) {
+        return service.updateDefective(defectiveHis);
+    }
+
+    @ApiOperation("褰掓。涓嶈壇鍝�")
+    @PostMapping("stopDefective")
+    public Response stopDefective(@RequestParam int  deftId) {
+        return service.stopDefective(deftId);
+    }
+
+    @ApiOperation("鑾峰彇涓嶈壇鍝�")
+    @GetMapping("getDefectives")
+    public Response getDefectives(@RequestParam String  message) {
+        DefectiveDto defectiveDto= ActionUtil.getGson().fromJson(message, DefectiveDto.class);
+        return service.getDefectiveLimit(defectiveDto);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1