提交 | 用户 | 时间
|
1ac2bc
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
懒 |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
3 |
<mapper namespace="cn.stylefeng.guns.sys.modular.consts.mapper.SysConfigMapper"> |
|
4 |
|
|
5 |
<!-- 通用查询映射结果 --> |
|
6 |
<resultMap id="BaseResultMap" type="cn.stylefeng.guns.sys.modular.consts.entity.SysConfig"> |
|
7 |
<id column="id" property="id"/> |
|
8 |
<result column="name" property="name"/> |
|
9 |
<result column="code" property="code"/> |
|
10 |
<result column="dict_flag" property="dictFlag"/> |
|
11 |
<result column="dict_type_id" property="dictTypeId"/> |
|
12 |
<result column="value" property="value"/> |
|
13 |
<result column="remark" property="remark"/> |
|
14 |
<result column="create_time" property="createTime"/> |
|
15 |
<result column="create_user" property="createUser"/> |
|
16 |
<result column="update_time" property="updateTime"/> |
|
17 |
<result column="update_user" property="updateUser"/> |
|
18 |
</resultMap> |
|
19 |
|
|
20 |
<!-- 通用查询结果列 --> |
|
21 |
<sql id="Base_Column_List"> |
|
22 |
id AS "id", name AS "name", code AS "code", dict_flag AS "dictFlag", dict_type_id AS "dictTypeId", value AS "value", remark AS "remark", create_time AS "createTime", create_user AS "createUser", update_time AS "updateTime", update_user AS "updateUser" |
|
23 |
</sql> |
|
24 |
|
|
25 |
|
|
26 |
<select id="customList" resultType="cn.stylefeng.guns.sys.modular.consts.model.result.SysConfigResult" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam"> |
|
27 |
select |
|
28 |
<include refid="Base_Column_List"/> |
|
29 |
from sys_config where 1 = 1 |
|
30 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
31 |
and name like CONCAT('%',#{paramCondition.name},'%') |
|
32 |
</if> |
|
33 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
34 |
and code like CONCAT('%',#{paramCondition.code},'%') |
|
35 |
</if> |
|
36 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
37 |
and value like CONCAT('%',#{paramCondition.value},'%') |
|
38 |
</if> |
|
39 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
40 |
and remark like CONCAT('%',#{paramCondition.remark},'%') |
|
41 |
</if> |
|
42 |
</select> |
|
43 |
|
|
44 |
<select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam"> |
|
45 |
select |
|
46 |
<include refid="Base_Column_List"/> |
|
47 |
from sys_config where 1 = 1 |
|
48 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
49 |
and name like CONCAT('%',#{paramCondition.name},'%') |
|
50 |
</if> |
|
51 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
52 |
and code like CONCAT('%',#{paramCondition.code},'%') |
|
53 |
</if> |
|
54 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
55 |
and value like CONCAT('%',#{paramCondition.value},'%') |
|
56 |
</if> |
|
57 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
58 |
and remark like CONCAT('%',#{paramCondition.remark},'%') |
|
59 |
</if> |
|
60 |
</select> |
|
61 |
|
|
62 |
<select id="customPageList" resultType="cn.stylefeng.guns.sys.modular.consts.model.result.SysConfigResult" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam"> |
|
63 |
select |
|
64 |
<include refid="Base_Column_List"/> |
|
65 |
from sys_config |
|
66 |
<where> |
|
67 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
68 |
name like CONCAT('%',#{paramCondition.name},'%') |
|
69 |
</if> |
|
70 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
71 |
or code like CONCAT('%',#{paramCondition.code},'%') |
|
72 |
</if> |
|
73 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
74 |
or value like CONCAT('%',#{paramCondition.value},'%') |
|
75 |
</if> |
|
76 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
77 |
or remark like CONCAT('%',#{paramCondition.remark},'%') |
|
78 |
</if> |
|
79 |
</where> |
|
80 |
</select> |
|
81 |
|
|
82 |
<select id="customPageList" resultType="cn.stylefeng.guns.sys.modular.consts.model.result.SysConfigResult" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam" databaseId="pgsql"> |
|
83 |
select |
|
84 |
<include refid="Base_Column_List"/> |
|
85 |
from sys_config |
|
86 |
<where> |
|
87 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
88 |
name like '%' || #{paramCondition.name} || '%' |
|
89 |
</if> |
|
90 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
91 |
or code like '%' || #{paramCondition.code} || '%' |
|
92 |
</if> |
|
93 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
94 |
or value like '%' || #{paramCondition.value} || '%' |
|
95 |
</if> |
|
96 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
97 |
or remark like '%' || #{paramCondition.remark} || '%' |
|
98 |
</if> |
|
99 |
</where> |
|
100 |
</select> |
|
101 |
|
|
102 |
<select id="customPageList" resultType="cn.stylefeng.guns.sys.modular.consts.model.result.SysConfigResult" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam" databaseId="oracle"> |
|
103 |
select |
|
104 |
<include refid="Base_Column_List"/> |
|
105 |
from sys_config |
|
106 |
<where> |
|
107 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
108 |
name like '%' || #{paramCondition.name} || '%' |
|
109 |
</if> |
|
110 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
111 |
or code like '%' || #{paramCondition.code} || '%' |
|
112 |
</if> |
|
113 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
114 |
or value like '%' || #{paramCondition.value} || '%' |
|
115 |
</if> |
|
116 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
117 |
or remark like '%' || #{paramCondition.remark} || '%' |
|
118 |
</if> |
|
119 |
</where> |
|
120 |
</select> |
|
121 |
|
|
122 |
<select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.sys.modular.consts.model.params.SysConfigParam"> |
|
123 |
select |
|
124 |
<include refid="Base_Column_List"/> |
|
125 |
from sys_config where 1 = 1 |
|
126 |
<if test="paramCondition.name != null and paramCondition.name != ''"> |
|
127 |
and name like CONCAT('%',#{paramCondition.name},'%') |
|
128 |
</if> |
|
129 |
<if test="paramCondition.code != null and paramCondition.code != ''"> |
|
130 |
and code like CONCAT('%',#{paramCondition.code},'%') |
|
131 |
</if> |
|
132 |
<if test="paramCondition.value != null and paramCondition.value != ''"> |
|
133 |
and value like CONCAT('%',#{paramCondition.value},'%') |
|
134 |
</if> |
|
135 |
<if test="paramCondition.remark != null and paramCondition.remark != ''"> |
|
136 |
and remark like CONCAT('%',#{paramCondition.remark},'%') |
|
137 |
</if> |
|
138 |
</select> |
|
139 |
|
|
140 |
</mapper> |