system.xml
560 字节
<?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.chuanqi.reading.home.dao.SystemDao">
<!--查询数据字典表 -->
<select id="queryDictData" resultType="java.util.Map" parameterType="java.util.Map">
select dict_value value,
dict_label label,
remark
from sys_dict_data
where dict_type = #{type}
and status = '0'
ORDER BY dict_sort
</select>
</mapper>