fix: 字典翻译BUG
This commit is contained in:
+8
-1
@@ -77,7 +77,14 @@
|
||||
|
||||
<!--通过查询指定table的 text code key 获取字典值-->
|
||||
<select id="queryTableDictTextByKey" parameterType="String" resultType="String">
|
||||
select ${text} as "text" from ${table} where ${code}= #{key} AND del_flag = 0
|
||||
<choose>
|
||||
<when test="table == 'sys_depart'">
|
||||
select ${text} as "text" from ${table} where ${code}= #{key} AND del_flag=0
|
||||
</when>
|
||||
<otherwise>
|
||||
select ${text} as "text" from ${table} where ${code}= #{key}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<!--通过查询指定table的 text code key 获取字典值,可批量查询-->
|
||||
|
||||
Reference in New Issue
Block a user