From afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 02 十二月 2023 10:38:27 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/DicMapper.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/DicMapper.xml b/src/main/resources/mapper/DicMapper.xml
index 4ecf8ec..771b43b 100644
--- a/src/main/resources/mapper/DicMapper.xml
+++ b/src/main/resources/mapper/DicMapper.xml
@@ -10,4 +10,11 @@
</resultMap>
+ <select id="selectByName" resultMap="BaseResultMap">
+ select top 1 *
+ from sys_dic
+ where 1=1
+ and name = #{name}
+ </select>
+
</mapper>
--
Gitblit v1.9.1