From 7311e99980ef0ffa10cc92a934cc840d164fe7aa Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 30 十月 2024 14:39:49 +0800
Subject: [PATCH] #摄像头pic存储增加locNo
---
zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml | 32 ++++++++++++++++++++++++++++----
1 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml b/zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
index d760db7..96a0c7d 100644
--- a/zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
+++ b/zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
@@ -24,6 +24,13 @@
and qty < anfme
</select>
+ <select id="selectDetls" resultType="com.zy.asrs.common.wms.entity.OrderDetl">
+ select * from wms_order_detl
+ where 1=1
+ and order_id = #{orderId}
+ and host_id = #{hostId}
+ </select>
+
<select id="selectItem" resultType="com.zy.asrs.common.wms.entity.OrderDetl">
select * from wms_order_detl
where 1=1
@@ -34,9 +41,9 @@
<when test="batch != null and batch != ''">
and batch = #{batch}
</when>
- <otherwise>
- and (batch IS NULL OR batch = '')
- </otherwise>
+<!-- <otherwise>-->
+<!-- and (batch IS NULL OR batch = '')-->
+<!-- </otherwise>-->
</choose>
</select>
@@ -87,7 +94,7 @@
<update id="decrease">
update wms_order_detl
- set qty = qty - #{qty}
+ set work_qty = work_qty - #{qty}
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
@@ -136,4 +143,21 @@
</choose>
</update>
+ <update id="increaseWorkQty">
+ update wms_order_detl
+ set work_qty = work_qty + #{workQty}
+ where 1=1
+ and order_id = #{orderId}
+ and matnr = #{matnr}
+ and host_id = #{hostId}
+ <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