From f6f8bb8d5dfc7f663bdce8a0fbf5062a030de2f6 Mon Sep 17 00:00:00 2001
From: ytfl <ytfl@qq.com>
Date: 星期六, 14 六月 2025 20:07:12 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/asrs/WrkDetlMapper.xml | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/asrs/WrkDetlMapper.xml b/src/main/resources/mapper/asrs/WrkDetlMapper.xml
index feb11ec..34e41c4 100644
--- a/src/main/resources/mapper/asrs/WrkDetlMapper.xml
+++ b/src/main/resources/mapper/asrs/WrkDetlMapper.xml
@@ -87,16 +87,26 @@
<include refid="batchSeq"></include>
</update>
+ <update id="updateWeight">
+ update asr_wrk_detl
+ set weight = #{weight}
+ , modi_time = getdate()
+ where 1=1
+ and wrk_no = #{wrkNo}
+ and matnr = #{matnr}
+ <include refid="batchSeq"></include>
+ </update>
+
<select id="selectAndLogByOrderNo" resultMap="BaseResultMap">
select awd.*
from asr_wrk_detl awd
left join asr_wrk_mast awm on awd.wrk_no = awm.wrk_no and awd.io_time = awm.io_time
- where order_no = #{orderNo}
+ where order_no = #{orderNo} and awm.io_type != 103
union
select distinct awdl.*
from asr_wrk_detl_log awdl
left join asr_wrk_mast_log awml on awdl.wrk_no = awml.wrk_no and awdl.io_time = awml.io_time
- where awdl.order_no = #{orderNo}
+ where awdl.order_no = #{orderNo} and awml.io_type != 103
and (awml.manu_type is null or awml.manu_type != '鎵嬪姩鍙栨秷')
</select>
--
Gitblit v1.9.1