From 00860b3f449e5b3289f2809c199dd56ec75d46e3 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 20 十月 2025 08:57:20 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/WrkDetlMapper.xml |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/WrkDetlMapper.xml b/src/main/resources/mapper/WrkDetlMapper.xml
index 6bb6870..6b1c11b 100644
--- a/src/main/resources/mapper/WrkDetlMapper.xml
+++ b/src/main/resources/mapper/WrkDetlMapper.xml
@@ -45,6 +45,7 @@
         <result column="appe_user" property="appeUser" />
         <result column="appe_time" property="appeTime" />
         <result column="memo" property="memo" />
+        <result column="bom_code" property="bomCode" />
     </resultMap>
 
     <sql id="batchSeq">
@@ -96,4 +97,23 @@
         <include refid="batchSeq"></include>
     </update>
 
+    <select id="selectPakoutQuery" resultMap="BaseResultMap">
+        select
+        awd.*
+        from asr_wrk_detl awd
+        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="getBomQty" resultType="double">
+        select SUM(anfme) anfme
+        from asr_wrk_detl
+        where bom_code = #{bomCode}
+        and matnr = #{matnr}
+    </select>
+
 </mapper>

--
Gitblit v1.9.1