From 56e0f5a507f990d5695d84361341c1ea23194589 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期日, 20 七月 2025 23:49:22 +0800
Subject: [PATCH] 订单出库完成扣减工作数量

---
 src/main/resources/mapper/OrderDetlPakoutMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/OrderDetlPakoutMapper.xml b/src/main/resources/mapper/OrderDetlPakoutMapper.xml
index 798de3d..04f6357 100644
--- a/src/main/resources/mapper/OrderDetlPakoutMapper.xml
+++ b/src/main/resources/mapper/OrderDetlPakoutMapper.xml
@@ -193,7 +193,7 @@
     </update>
     <update id="increaseQtyByOrderNoNew">
         update man_order_detl_pakout
-        set qty = qty + #{qty}
+        set qty = qty + #{qty},work_qty = work_qty - #{qty}
         where 1=1
         and order_no = #{orderNo}
         and matnr = #{matnr}

--
Gitblit v1.9.1