From 9853c8b3acea46269c44008f8cfb24ad2b4d1386 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 19 九月 2024 16:35:17 +0800
Subject: [PATCH] 提交其他系统创建订单的接口

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

diff --git a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
index 2ac2c08..e332834 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/PatchLogMapper.xml
@@ -373,13 +373,14 @@
     </select>
 
     <delete id="deleteReplenishMp">
-        delete from pp.patch_log where patch_id=#{patchId}
+        delete from pp.patch_log where id=#{id}
     </delete>
 
-    <update id="updatePatchDdMp">
-        update pp.damage_details set patch_status=0,quantity=quantity-#{qualityInspector}
+    <delete id="updatePatchDdMp">
+        delete from pp.damage_details
      where reporting_work_id=#{reportingWorkId} and order_number=#{orderSort} and technology_number=#{technologyNumber}
-    </update>
+        and breakage_reason=#{patchReason}
+    </delete>
 
     <update id="updatePatchBgMp">
         update pp.reporting_work_detail set patch_status=0

--
Gitblit v1.8.0