From 9268cd77b4e864b901a8b0bf965f441f2e8c4fbd Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期日, 04 一月 2026 08:06:14 +0800
Subject: [PATCH] #1

---
 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 225f31e..d483d58 100644
--- a/src/main/resources/mapper/WrkDetlMapper.xml
+++ b/src/main/resources/mapper/WrkDetlMapper.xml
@@ -81,6 +81,15 @@
         <include refid="batchSeq"></include>
     </update>
 
+    <update id="updateWorkNo">
+        update asr_wrk_detl
+        set wrk_no = #{newWrkNo}
+        , modi_time = getdate()
+        , io_time = #{now}
+        where 1=1
+        and wrk_no = #{oldWrkNo}
+    </update>
+
     <select id="selectAndLogByOrderNo" resultMap="BaseResultMap">
         select * from asr_wrk_detl where order_no = #{orderNo}
         union
@@ -107,5 +116,8 @@
         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