From cbfb94ee3bbda9cf341d326f55bec2b2f294e321 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 20 九月 2024 08:59:57 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml |   23 +++++++++++++++++++++++
 1 files changed, 23 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 5f5d326..d8eaa8f 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -858,4 +858,27 @@
                  ogd.technology_number
         order by fc.order_number
     </select>
+
+    <update id="updateReplenishWorkProcess">
+        update sd.order_process_detail
+        set
+            broken_num=broken_num - #{patchNum}
+        where process_id = #{processId}
+          and order_number = #{orderSort}
+          and technology_number = #{technologyNumber}
+          and process = #{patchProcesses}
+    </update>
+
+    <update id="updateRWPatchNum">
+        update  reporting_work
+        set this_worn_quantity=this_worn_quantity-#{patchNum}
+        where reporting_work_id=#{reportingWorkId}
+    </update>
+
+    <update id="updateRWDPatchNum">
+        update  reporting_work_detail
+        set breakage_quantity=breakage_quantity-#{patchNum}
+        where reporting_work_id=#{reportingWorkId} and order_number = #{orderSort}
+          and technology_number = #{technologyNumber}
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0