From 3677c6501ed94234f406d6444bab46e90824dac8 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期一, 24 二月 2025 09:58:16 +0800
Subject: [PATCH] *

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

diff --git a/src/main/resources/mapper/WrkDetlMapper.xml b/src/main/resources/mapper/WrkDetlMapper.xml
index 1d078f3..90cf3af 100644
--- a/src/main/resources/mapper/WrkDetlMapper.xml
+++ b/src/main/resources/mapper/WrkDetlMapper.xml
@@ -6,8 +6,8 @@
     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkDetl">
         <result column="wrk_no" property="wrkNo" />
         <result column="io_time" property="ioTime" />
-        <result column="mat_no" property="matNo" />
-        <result column="mat_name" property="matName" />
+        <result column="matnr" property="matnr" />
+        <result column="maktx" property="maktx" />
         <result column="specs" property="specs" />
         <result column="size" property="size" />
         <result column="color" property="color" />
@@ -15,7 +15,7 @@
         <result column="bill_no" property="billNo" />
         <result column="seq_no" property="seqNo" />
         <result column="brand" property="brand" />
-        <result column="qty" property="qty" />
+        <result column="anfme" property="anfme" />
         <result column="unit" property="unit" />
         <result column="zpallet" property="zpallet" />
         <result column="bname" property="bname" />
@@ -27,7 +27,7 @@
     </resultMap>
 
     <select id="findByWorkNo" resultMap="BaseResultMap">
-        select wrk_no, mat_no, mat_name, qty from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
+        select * from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
     </select>
 
     <update id="updateIoTime">
@@ -37,4 +37,20 @@
         and wrk_no = #{workNo}
     </update>
 
+    <select id="selectByWrkNo" resultMap="BaseResultMap">
+        select * from asr_wrk_detl where 1=1 and wrk_no = #{wrkNo}
+    </select>
+
+    <select id="count1" resultType="Integer">
+        select count(1) from asr_wrk_detl where 1=1 and (wrk_no in (select wrk_no from asr_wrk_mast where 1=1 and wrk_sts in (11,12,13,14)))
+    </select>
+
+    <select id="count2" resultType="Integer">
+        select count(1) from asr_wrk_detl where 1=1 and order_no = #{orderNo} and (wrk_no in (select wrk_no from asr_wrk_mast where 1=1 and wrk_sts in (11,12,13,14)))
+    </select>
+
+    <select id="count3" resultType="Integer">
+        select count(1) from asr_bas_devp where 1=1 and dev_no > 19999
+    </select>
+
 </mapper>

--
Gitblit v1.9.1