refactor: 系统功能重构
This commit is contained in:
@@ -4,4 +4,32 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.youlai.system.mapper.SysDictMapper">
|
||||
|
||||
<!-- 字典映射 -->
|
||||
<resultMap id="DictMap" type="com.youlai.system.model.vo.DictPageVO">
|
||||
<collection property="dictItems"
|
||||
column="{dictId=id}"
|
||||
select="com.youlai.system.mapper.SysDictItemMapper.listDictItemsByDictId">
|
||||
</collection>
|
||||
</resultMap>
|
||||
<!-- 字典分页列表 -->
|
||||
<select id="getDictPage" resultMap="DictMap">
|
||||
SELECT
|
||||
t1.id,
|
||||
t1.name,
|
||||
t1.code,
|
||||
t1.status
|
||||
FROM
|
||||
sys_dict t1
|
||||
<where>
|
||||
t1.is_deleted = 0
|
||||
<if test='queryParams.keywords!=null and queryParams.keywords.trim() neq ""'>
|
||||
AND (
|
||||
t1.name LIKE CONCAT('%',#{queryParams.keywords},'%')
|
||||
OR t1.code LIKE CONCAT('%',#{queryParams.keywords},'%')
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
t1.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user