fix: 字典翻译BUG

This commit is contained in:
2024-04-16 12:29:35 +08:00
parent be1a311c09
commit bd3767e449
@@ -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 获取字典值,可批量查询-->