From 0b977fb16e8272739bbe25973947f45a55ebe842 Mon Sep 17 00:00:00 2001
From: 唐耀东 <18861537@qq.com>
Date: 星期五, 31 十二月 2021 11:30:49 +0800
Subject: [PATCH] 提交代码

---
 ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
index f17d593..663ff90 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -20,4 +20,11 @@
         <result property="updateTime" column="update_time"/>
     </resultMap>
 
-</mapper> 
\ No newline at end of file
+    <select id="queryDictTextByKey" resultType="java.lang.String">
+        select s.dict_label from sys_dict_data s where s.dict_type = #{code} and s.dict_value = #{key}
+    </select>
+
+    <select id="queryTableDictTextByKey" resultType="java.lang.String">
+        select ${text} as "text" from ${table} where ${code}= #{key}
+    </select>
+</mapper>

--
Gitblit v1.9.1