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 | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/DefectiveProductsController.java b/src/main/java/com/whyc/controller/DefectiveProductsController.java index 6a66cb6..b042212 100644 --- a/src/main/java/com/whyc/controller/DefectiveProductsController.java +++ b/src/main/java/com/whyc/controller/DefectiveProductsController.java @@ -1,5 +1,6 @@ package com.whyc.controller; +import com.whyc.dto.DefectiveDto; import com.whyc.dto.Response; import com.whyc.pojo.BOMFeedback; import com.whyc.pojo.DefectiveProducts; @@ -43,4 +44,11 @@ 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