From 6a7b8832aadccd2930ccf9b4e09890b78887e65e Mon Sep 17 00:00:00 2001
From: qlsxk <qlsxk@qq.com>
Date: 星期四, 16 十月 2025 14:34:22 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkDetlMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WrkDetlMapper.xml b/src/main/resources/mapper/WrkDetlMapper.xml
index 22e22ef..c448ed1 100644
--- a/src/main/resources/mapper/WrkDetlMapper.xml
+++ b/src/main/resources/mapper/WrkDetlMapper.xml
@@ -81,6 +81,14 @@
<include refid="batchSeq"></include>
</update>
+ <update id="updateWorkNo">
+ update asr_wrk_detl
+ set wrk_no = #{newWrkNo}
+ , modi_time = getdate()
+ where 1=1
+ and wrk_no = #{oldWrkNo}
+ </update>
+
<select id="selectAndLogByOrderNo" resultMap="BaseResultMap">
select * from asr_wrk_detl where order_no = #{orderNo}
union
@@ -103,8 +111,12 @@
left join asr_wrk_mast awm on awd.wrk_no = awm.wrk_no
where 1=1
and awm.wrk_sts = 14
+ and (awd.inspect is null or awd.inspect = 0)
and awm.sta_no = #{staNo}
and awd.matnr + '-' + awd.batch = #{matnr}
</select>
+ <select id="findByWorkNo" resultMap="BaseResultMap">
+ select wrk_no, matnr, maktx, anfme ,specs,batch from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
+ </select>
</mapper>
--
Gitblit v1.9.1