|
|
|
@ -41,6 +41,37 @@
|
|
|
|
|
order by dict_sort asc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getDictDataList" parameterType="SysDictType" resultMap="SysDictTypeResult">
|
|
|
|
|
select
|
|
|
|
|
CONCAT(dict_label,'[',dict_value,']') AS dict_label,
|
|
|
|
|
dict_code,
|
|
|
|
|
dict_sort,
|
|
|
|
|
dict_value,
|
|
|
|
|
dict_type,
|
|
|
|
|
status,
|
|
|
|
|
remark
|
|
|
|
|
from base_dict_data
|
|
|
|
|
<where>
|
|
|
|
|
<if test="dictType != null and dictType != ''">
|
|
|
|
|
AND dict_type = #{dictType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dictLabel != null and dictLabel != ''">
|
|
|
|
|
AND dict_label like concat('%', #{dictLabel}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dictValue != null and dictValue != ''">
|
|
|
|
|
AND dict_value = #{dictValue}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
|
AND status = #{status}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remark != null and remark != ''">
|
|
|
|
|
AND remark like concat('%', #{remark}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by dict_sort asc
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectDictDataByType" parameterType="SysDictType" resultMap="SysDictTypeResult">
|
|
|
|
|
<include refid="selectDictDataVo"/>
|
|
|
|
|
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
|
|
|
|