From a9a8af3cd6e452cbcb8f8a046890cd5b36a61b17 Mon Sep 17 00:00:00 2001
From: ZY <zc857179121@qq.com>
Date: 星期三, 21 八月 2024 10:34:39 +0800
Subject: [PATCH] 档查询出来有多条数据时,加上数量条件,进行匹配,如果数量也匹配不上,就默认返回第一个
---
src/main/resources/mapper/MatMapper.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/MatMapper.xml b/src/main/resources/mapper/MatMapper.xml
index 09a8d0a..b7157a6 100644
--- a/src/main/resources/mapper/MatMapper.xml
+++ b/src/main/resources/mapper/MatMapper.xml
@@ -111,6 +111,13 @@
</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">
select * from
(
--
Gitblit v1.9.1