1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| <?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="cn.besteam.modules.system.mapper.SysDictMapper">
|
| <!-- 获取字典定义数据列表 -->
| <select id="getQueryList" resultType="cn.besteam.modules.system.vo.SysDictVO">
| SELECT
| dit.id,
| dit.item_text,
| dit.item_value,
| dit.description,
| dit.update_time,
| d.id AS dictId,
| d.dict_name,
| dit.color_value
| FROM
| sys_dict_item dit
| LEFT JOIN sys_dict d ON d.id = dit.dict_id
| WHERE
| dit.`status` = 1
| <if test="keyword != null and keyword != ''">
| AND (
| dit.item_value LIKE CONCAT('%', #{keyword} ,'%')
| OR
| d.dict_name LIKE CONCAT('%', #{keyword} ,'%')
| )
| </if>
| ORDER BY
| dit.dict_id ASC,
| dit.sort_order ASC
| </select>
| </mapper>
|
|