From 59958f4c35abc1ae902a87dfb56f6dbadd36ad49 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 17 七月 2024 18:00:04 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
index e3f921d..a46c13d 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -477,6 +477,7 @@
                            from reporting_work as rw
                            left join  reporting_work_detail  as rwd
                            on rw.reporting_work_id = rwd.reporting_work_id
+              where rw.reviewed_state>=0
                            group by rw.process_id,
                                     rw.this_process,
                                     rwd.order_number,
@@ -787,4 +788,8 @@
         where rw.process_id = #{substring} and rw.this_process=#{process}
           and rwd.technology_number = #{result} and reviewed_state=0
     </update>
+
+    <select id="getPatchConditionMp">
+        select count(*) from damage_details where reporting_work_id=#{reportingWorkId} and patch_status>0
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0