From 7b40697a357feca756647b6c4afaa1b303f5938d Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期一, 06 十一月 2023 11:47:58 +0800
Subject: [PATCH] 修复拣料回库后库存更新错误bug
---
src/main/resources/mapper/OrderDetlMapper.xml | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index ee1bf31..4152d97 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -74,6 +74,20 @@
</if>
</select>
+ <select id="selectItemNoneOfBatch" resultMap="BaseResultMap">
+ select top 1 * from man_order_detl
+ where 1=1
+ and order_no = #{orderNo}
+ and matnr = #{matnr}
+ </select>
+
+ <select id="selectItemOfBatch" resultMap="BaseResultMap">
+ select top 1 * from man_order_detl
+ where 1=1
+ and matnr = #{matnr}
+ and batch = #{batch}
+ </select>
+
<select id="selectWorkingDetls" resultMap="BaseResultMap">
select * from man_order_detl
where 1=1
--
Gitblit v1.9.1