From 5de76c8f2409c0d1a759c4ee33967f2fbd8295c8 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期三, 22 十月 2025 17:25:24 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/asrs/OrderDetlMapper.xml | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/asrs/OrderDetlMapper.xml b/src/main/resources/mapper/asrs/OrderDetlMapper.xml
index 25b6cf8..44bb793 100644
--- a/src/main/resources/mapper/asrs/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/asrs/OrderDetlMapper.xml
@@ -112,6 +112,16 @@
) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
</select>
+ <select id="reportERPOrderDetl" resultMap="BaseResultMap">
+ select d.* from man_order_detl d
+ LEFT JOIN man_order o on o.order_no = d.order_no
+ where 1=1
+ and o.doc_type = 81
+ and d.work_qty = d.qty
+ and d.qty = d.anfme
+ and d.qty > d.units
+ </select>
+
<select id="getPakoutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
select
count(1)
@@ -200,4 +210,23 @@
</choose>
</update>
+ <update id="increaseWorkQty2">
+ update man_order_detl
+ set work_qty = work_qty + #{workQty}
+ <if test="color!=null and color!='' ">
+ , color = #{color}
+ </if>
+ where 1=1
+ and order_id = #{orderId}
+ and matnr = #{matnr}
+ <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