From e7d8e2c64facfa261e8b168b84e81ef6c835f57d Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期三, 03 九月 2025 09:25:19 +0800
Subject: [PATCH] 许可证到期提醒,系统30分钟无操作下线账号

---
 src/main/resources/mapper/MatMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/MatMapper.xml b/src/main/resources/mapper/MatMapper.xml
index 09a8d0a..3f4b0a4 100644
--- a/src/main/resources/mapper/MatMapper.xml
+++ b/src/main/resources/mapper/MatMapper.xml
@@ -96,6 +96,10 @@
         <if test="specs != null and specs != ''">
             and mm.specs like concat('%',#{specs},'%')
         </if>
+        <if test="model != null and model != ''">
+            and mm.model like concat('%',#{model},'%')
+        </if>
+
         ORDER BY mm.create_time DESC
     </select>
 
@@ -109,6 +113,13 @@
         <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 +145,10 @@
             and a.matnr = #{matnr}
         </if>
     </select>
+
+    <select id="getTagIdByMatnr" resultType="java.lang.Integer">
+        select tag_id
+        from man_mat
+        where matnr = #{matnr}
+    </select>
 </mapper>

--
Gitblit v1.9.1