From f08dd93e49e8461f362c8f45f17fe10e0fbdebec Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期一, 12 一月 2026 18:54:58 +0800
Subject: [PATCH] #新增和得码入库流程,渝程进仓后续下发货主转换
---
src/main/resources/mapper/OrderDetlMapper.xml | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index 15c8b1e..237a398 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -53,6 +53,10 @@
<result column="box_type1" property="boxType1" />
<result column="box_type2" property="boxType2" />
<result column="box_type3" property="boxType3" />
+ <result column="width" property="width" />
+ <result column="height" property="height" />
+ <result column="erp_anfme" property="erpAnfme" />
+ <result column="sorting_anfme" property="sortingAnfme" />
</resultMap>
@@ -186,4 +190,30 @@
<include refid="standbyAll"></include>
</update>
+ <update id="increaseWorkQtyByOrderNo">
+ update man_order_detl
+ set work_qty = work_qty + #{qty}
+ 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>
+ <select id="selectByOrderNo" resultMap="BaseResultMap">
+ select *
+ from man_order_detl
+ where order_no = #{orderNo}
+ </select>
+ <update id="morpt" parameterType="String">
+ UPDATE man_order_detl
+ SET qty = anfme, work_qty = anfme
+ WHERE order_no = #{orderNo} and matnr = #{matnr}
+ </update>
+
</mapper>
--
Gitblit v1.9.1