From cc27cb7605ba48ebe83e9d8736d7e539eb01d36a Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期四, 13 十一月 2025 16:21:06 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/MatMapper.xml | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/MatMapper.xml b/src/main/resources/mapper/MatMapper.xml
index 09a8d0a..3586409 100644
--- a/src/main/resources/mapper/MatMapper.xml
+++ b/src/main/resources/mapper/MatMapper.xml
@@ -25,8 +25,10 @@
<result column="item_num" property="itemNum" />
<result column="safe_qty" property="safeQty" />
<result column="weight" property="weight" />
- <result column="length" property="length" />
+ <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,12 +105,23 @@
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="selectNewUpdateTime" resultMap="BaseResultMap">
+ select top 1 * from man_mat
+ where 1=1
+ ORDER BY create_time ASC
+-- ORDER BY update_time DESC
</select>
<select id="getMatTurnPage" resultMap="BaseResultMap">
@@ -134,4 +147,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