You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.epmet.dao.SysDictDataDao">
|
|
|
|
<select id="getDictDataList" resultType="com.epmet.entity.DictData">
|
|
select dict_type_id, dict_label, dict_value from sys_dict_data order by dict_type_id, sort
|
|
</select>
|
|
|
|
<select id="selectDictList" resultType="com.epmet.commons.tools.dto.result.DictListResultDTO">
|
|
SELECT
|
|
a.dict_label label,
|
|
a.dict_value `value`
|
|
FROM
|
|
sys_dict_data a
|
|
INNER JOIN sys_dict_type b ON a.dict_type_id = b.id
|
|
WHERE a.del_flag='0'
|
|
and b.dict_type = #{dictType}
|
|
ORDER BY
|
|
a.sort ASC
|
|
</select>
|
|
<select id="selectDictData" resultType="com.epmet.commons.tools.dto.result.DictTreeResultDTO">
|
|
SELECT
|
|
a.dict_value id,
|
|
a.dict_p_value pid,
|
|
a.dict_label name
|
|
FROM
|
|
sys_dict_data a
|
|
INNER JOIN sys_dict_type b ON a.dict_type_id = b.id
|
|
WHERE a.del_flag='0'
|
|
and b.dict_type = #{dictType}
|
|
ORDER BY
|
|
a.sort asc
|
|
</select>
|
|
|
|
</mapper>
|
|
|