From 81e3a9603003a5f4b2ca6320493d4918aaa9ae49 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 10 八月 2023 13:17:02 +0800
Subject: [PATCH] #BUG修复
---
src/main/resources/mapper/OrderDetlMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index 4a9ca0e..c2043b0 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -71,7 +71,7 @@
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
- <if test="batch!=null">
+ <if test="batch!=null and batch!=''">
and batch = #{batch}
</if>
</select>
@@ -141,7 +141,7 @@
<update id="increase">
update man_order_detl
- set qty = qty + #{qty}
+ set work_qty = work_qty + #{workQty}
where 1=1
and order_id = #{orderId}
and matnr = #{matnr}
@@ -157,7 +157,7 @@
<update id="decrease">
update man_order_detl
- set qty = qty - #{qty}
+ set work_qty = work_qty - #{workQty}
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
--
Gitblit v1.9.1