refactor: 目录结构调整和代码优化
This commit is contained in:
24
src/main/resources/mapper/DictItemMapper.xml
Normal file
24
src/main/resources/mapper/DictItemMapper.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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.youlai.boot.system.mapper.DictItemMapper">
|
||||
|
||||
<!-- 根据字典编码获取字典列表 -->
|
||||
<select id="listDictItemsByDictId" resultType="com.youlai.boot.system.model.vo.DictPageVO$DictItem">
|
||||
SELECT
|
||||
id,
|
||||
`name`,
|
||||
value,
|
||||
sort,
|
||||
status
|
||||
FROM
|
||||
sys_dict_item
|
||||
<where>
|
||||
dict_id = #{dictId}
|
||||
</where>
|
||||
ORDER BY
|
||||
sort ASC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user