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 ++++++++
 src/main/resources/mapper/DefectiveProductsMapper.xml              |    2 +-
 src/main/java/com/whyc/mapper/DefectiveProductsMapper.java         |    2 +-
 3 files changed, 10 insertions(+), 2 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
diff --git a/src/main/java/com/whyc/mapper/DefectiveProductsMapper.java b/src/main/java/com/whyc/mapper/DefectiveProductsMapper.java
index de71f4d..99f731b 100644
--- a/src/main/java/com/whyc/mapper/DefectiveProductsMapper.java
+++ b/src/main/java/com/whyc/mapper/DefectiveProductsMapper.java
@@ -9,7 +9,7 @@
 
 public interface DefectiveProductsMapper extends CustomMapper<DefectiveProducts>{
     //涓嶈壇鍝侀椤垫帹閫�
-    List<DefectiveProducts> getDefectiveLimit(@Param("dto")DefectiveDto defectiveDto);
+    List<DefectiveProducts> getDefectiveLimit(@Param("dto") DefectiveDto defectiveDto);
 
 
 }
\ No newline at end of file
diff --git a/src/main/resources/mapper/DefectiveProductsMapper.xml b/src/main/resources/mapper/DefectiveProductsMapper.xml
index 2f2cc54..18e0c12 100644
--- a/src/main/resources/mapper/DefectiveProductsMapper.xml
+++ b/src/main/resources/mapper/DefectiveProductsMapper.xml
@@ -35,7 +35,7 @@
             </if>
 
             <if test="dto.confirmStatus!=null">
-                and confirm_status=#{confirmStatus}
+                and confirm_status=#{dto.confirmStatus}
             </if>
         </where>
            order by start_time desc

--
Gitblit v1.9.1