commit | author | age
|
a18bfa
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
Z |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
3 |
<!-- Table:epc_system_config_{rule} --> |
|
4 |
<mapper namespace="com.changhong.epc.tenant.mapper.tenant.system.SystemConfigMapper"> |
|
5 |
|
|
6 |
<resultMap id="systemConfigMapperResultMap" type="com.changhong.epc.bean.tenant.system.SystemConfig"> |
|
7 |
<result property="groupKey" column="groupKey"/><!-- 组名称 --> |
|
8 |
<result property="key" column="key"/><!-- key --> |
|
9 |
<result property="value" column="value"/><!-- 值 --> |
|
10 |
<result property="flag" column="flag"/> |
|
11 |
</resultMap> |
|
12 |
<sql id="systemConfigSql"> |
|
13 |
id, `groupKey`, `ckey`, `cvalue`, ins_p, ins_t, upd_p, upd_t, data_start, flag, back |
|
14 |
</sql> |
|
15 |
|
|
16 |
<!-- 查询全部 --> |
|
17 |
<select id="selectSystem" resultType="com.changhong.epc.bean.tenant.system.SystemConfig"> |
|
18 |
SELECT |
|
19 |
<include refid="systemConfigSql"/> |
|
20 |
FROM |
|
21 |
epc_system_config_{rule} |
|
22 |
</select> |
|
23 |
|
|
24 |
<select id="querySysConfigByGroupKey" resultType="com.changhong.epc.bean.tenant.system.SystemConfig"> |
|
25 |
SELECT |
|
26 |
<include refid="systemConfigSql"/> |
|
27 |
FROM |
|
28 |
epc_system_config_{rule} |
|
29 |
<where> |
|
30 |
<if test="groupKey != null and groupKey !=''"> |
|
31 |
AND `groupKey`= #{groupKey} |
|
32 |
</if> |
|
33 |
<if test="cvalue != null and cvalue !=''"> |
|
34 |
AND `cvalue` = #{cvalue} |
|
35 |
</if> |
|
36 |
<if test="ckey != null and ckey !=''"> |
|
37 |
AND `ckey` = #{ckey} |
|
38 |
</if> |
|
39 |
AND data_start = 0; |
|
40 |
</where> |
|
41 |
|
|
42 |
</select> |
|
43 |
</mapper> |