From 518b7a20ef1add6c6910eca89b1fef0fbd83e03d Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期日, 01 一月 2023 07:03:19 +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