From f0429051895816ebadc50bbc409021e23e4d1a3a Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期一, 08 十二月 2025 16:43:06 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WrkDetlMapper.xml | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/main/resources/mapper/WrkDetlMapper.xml b/src/main/resources/mapper/WrkDetlMapper.xml
index 4377db6..55e9157 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,17 @@
</resultMap>
<select id="findByWorkNo" resultMap="BaseResultMap">
- select wrk_no, matnr, maktx, anfme from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
+ select * from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
</select>
+ <select id="findByBarcode" resultMap="BaseResultMap">
+ select * from asr_wrk_detl where 1=1 and zpallet = #{barcode} and wrk_no != 9996
+ </select>
+
+ <update id="updateIoTime">
+ update asr_wrk_detl
+ set io_time = #{ioTime}
+ where 1=1
+ and wrk_no = #{workNo}
+ </update>
</mapper>
--
Gitblit v1.9.1