From 2ce4adc0e5b083181c315676f9017a1afb40b9e4 Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期一, 14 十一月 2022 08:07:02 +0800
Subject: [PATCH] 修复订单功能

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

diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index 74ebaf0..bb7dc9f 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -127,7 +127,7 @@
 
     <update id="increase">
         update man_order_detl
-        set qty = qty + #{qty}
+        set work_qty = work_qty + #{qty}
         where 1=1
         and order_id = #{orderId}
         and matnr = #{matnr}
@@ -147,14 +147,7 @@
         where 1=1
         and order_no = #{orderNo}
         and matnr = #{matnr}
-        <choose>
-            <when test="batch != null and batch != ''">
-                and batch = #{batch}
-            </when>
-            <otherwise>
-                and (batch IS NULL OR batch = '')
-            </otherwise>
-        </choose>
+
     </update>
 
     <update id="modifyStatus">
@@ -200,4 +193,12 @@
         </choose>
     </update>
 
+    <update id="increaseWorkQtytest">
+        update man_order_detl
+        set work_qty = work_qty + #{anfme}
+        where 1=1
+        and order_no = #{orderNo}
+        and matnr = #{matnr};
+    </update>
+
 </mapper>

--
Gitblit v1.9.1