From 667bbb037d3beb3f6a4fd274ff813bf44aa10698 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期五, 17 十月 2025 13:29:09 +0800
Subject: [PATCH] 1.删除入库通知档时自动对agv站点进行解绑

---
 src/main/resources/mapper/asrs/OrderDetlMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/asrs/OrderDetlMapper.xml b/src/main/resources/mapper/asrs/OrderDetlMapper.xml
index 25b6cf8..e2b9d92 100644
--- a/src/main/resources/mapper/asrs/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/asrs/OrderDetlMapper.xml
@@ -200,4 +200,23 @@
         </choose>
     </update>
 
+    <update id="increaseWorkQty2">
+        update man_order_detl
+        set work_qty = work_qty + #{workQty}
+        <if test="color!=null and color!='' ">
+            , color = #{color}
+        </if>
+        where 1=1
+        and order_id = #{orderId}
+        and matnr = #{matnr}
+        <choose>
+            <when test="batch != null and batch != ''">
+                and batch = #{batch}
+            </when>
+            <otherwise>
+                and (batch IS NULL OR batch = '')
+            </otherwise>
+        </choose>
+    </update>
+
 </mapper>

--
Gitblit v1.9.1