mirror of
https://gitee.com/beecue/fastbee.git
synced 2026-05-06 15:54:42 +08:00
fix(国际化): 字典报错修改
This commit is contained in:
@@ -8,6 +8,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<id property="dictCode" column="dict_code" />
|
<id property="dictCode" column="dict_code" />
|
||||||
<result property="dictSort" column="dict_sort" />
|
<result property="dictSort" column="dict_sort" />
|
||||||
<result property="dictLabel" column="dict_label" />
|
<result property="dictLabel" column="dict_label" />
|
||||||
|
<result property="dictLabel_zh_CN" column="dict_label_zh_cn" />
|
||||||
|
<result property="dictLabel_en_US" column="dict_label_en_us" />
|
||||||
<result property="dictValue" column="dict_value" />
|
<result property="dictValue" column="dict_value" />
|
||||||
<result property="dictType" column="dict_type" />
|
<result property="dictType" column="dict_type" />
|
||||||
<result property="cssClass" column="css_class" />
|
<result property="cssClass" column="css_class" />
|
||||||
@@ -42,8 +44,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
|
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
|
||||||
<include refid="selectDictDataVo"/>
|
select d.dict_code, d.dict_sort, d.dict_label, t.zh_cn as dict_label_zh_cn, t.en_us as dict_label_en_us,
|
||||||
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
d.dict_value, d.dict_type, d.css_class, d.list_class, d.is_default, d.status, d.create_by, d.create_time, d.remark
|
||||||
|
from sys_dict_data d
|
||||||
|
left join sys_dict_data_translate t on d.dict_code = t.id
|
||||||
|
where d.status = 0 and d.dict_type = #{dictType} order by d.dict_sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictLabel" resultType="String">
|
<select id="selectDictLabel" resultType="String">
|
||||||
@@ -51,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where dict_type = #{dictType} and dict_value = #{dictValue}
|
where dict_type = #{dictType} and dict_value = #{dictValue}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult">
|
<select id="selectDictDataById" resultMap="SysDictDataResult">
|
||||||
select d.dict_code, d.dict_sort,
|
select d.dict_code, d.dict_sort,
|
||||||
case
|
case
|
||||||
when #{language} = 'zh-CN' then d.dict_label
|
when #{language} = 'zh-CN' then d.dict_label
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
left join sys_dict_type_translate t on d.dict_id = t.id
|
left join sys_dict_type_translate t on d.dict_id = t.id
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeById" resultMap="SysDictTypeResult">
|
||||||
select d.dict_id,
|
select d.dict_id,
|
||||||
case
|
case
|
||||||
when #{language} = 'zh-CN' then d.dict_name
|
when #{language} = 'zh-CN' then d.dict_name
|
||||||
|
|||||||
Reference in New Issue
Block a user