From d854c87dcb5dfc629a7e1e3e8d693271908e592f Mon Sep 17 00:00:00 2001
From: zzgtfwq <zzgtfwq>
Date: 星期日, 14 十二月 2025 19:43:01 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/MatMapper.xml | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/MatMapper.xml b/src/main/resources/mapper/MatMapper.xml
index de36573..4bdd207 100644
--- a/src/main/resources/mapper/MatMapper.xml
+++ b/src/main/resources/mapper/MatMapper.xml
@@ -27,6 +27,8 @@
<result column="weight" property="weight" />
<result column="man_length" property="manLength" />
<result column="volume" property="volume" />
+ <result column="width" property="width" />
+ <result column="height" property="height" />
<result column="three_code" property="threeCode" />
<result column="supp" property="supp" />
<result column="supp_code" property="suppCode" />
@@ -103,8 +105,20 @@
select top 1 * from man_mat where 1=1 and matnr = #{matnr}
</select>
+ <select id="selectLatest" resultMap="BaseResultMap">
+ SELECT TOP 1 * FROM man_mat ORDER BY update_time DESC;
+ </select>
+
<select id="selectByMatnrLink" resultMap="BaseResultMap">
select * from man_mat
+ where 1=1
+ <if test="matnr != null and matnr != ''">
+ and mm.matnr like concat('%',#{matnr},'%')
+ </if>
+ </select>
+
+ <select id="selectByMatnrLink10" resultMap="BaseResultMap">
+ select TOP 20 * from man_mat
where 1=1
<if test="matnr != null and matnr != ''">
and mm.matnr like concat('%',#{matnr},'%')
@@ -141,4 +155,9 @@
and a.matnr = #{matnr}
</if>
</select>
+ <select id="getOldMatnr" resultType="String">
+ select matnr
+ from man_mat
+ where id = #{id}
+ </select>
</mapper>
--
Gitblit v1.9.1