From b99df3cd570cc5e5acbab949332bf1c819a01650 Mon Sep 17 00:00:00 2001
From: tqs <56479841@qq.com>
Date: 星期二, 08 十月 2024 13:07:22 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/LocDetlMapper.xml | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 310366a..d6bc758 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -106,6 +106,9 @@
<if test="batch!=null and batch!='' ">
and a.batch like '%' + #{batch} + '%'
</if>
+ <if test="specs!=null and specs!='' ">
+ and a.specs like '%' + #{specs} + '%'
+ </if>
</sql>
<select id="getStockOutPage" resultMap="BaseResultMap">
@@ -323,5 +326,20 @@
where loc_no=#{locNo}
</select>
+ <update id="updateMatTurn">
+ UPDATE a
+ SET a.matnr=b.matnr,
+ a.specs=b.specs,
+ a.maktx=b.maktx,
+ a.unit=b.unit
+ FROM asr_loc_detl a
+ INNER JOIN man_mat b ON a.matnr=#{matnrOld} AND b.matnr=#{matnr};
+ </update>
+
+ <select id="selectLocDetl" resultMap="BaseResultMap">
+ select *
+ from asr_loc_detl
+ where loc_no=#{locNo}
+ </select>
</mapper>
--
Gitblit v1.9.1