forked from zhurui/management
14 lines
597 B
XML
14 lines
597 B
XML
<?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.dkha.dao.SysDictDataDao">
|
|
|
|
<select id="getDictDataList" resultType="com.dkha.entity.DictData">
|
|
select dict_type_id, dict_label, dict_value from sys_dict_data order by dict_type_id, sort
|
|
</select>
|
|
<select id="getByType" resultType="com.dkha.dto.SysDictDataDTO">
|
|
SELECT * FROM sys_dict_data t left JOIN sys_dict_type t1 on t.dict_type_id = t1.id where t1.dict_type = #{type}
|
|
</select>
|
|
|
|
</mapper>
|