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="com.sunyo.wlpt.message.bus.service.mapper.MessageRouterReciverFilterMapper" >
|
|
|
4
|
- <resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
|
|
5
|
- <id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
6
|
- <result column="filter" property="filter" jdbcType="VARCHAR" />
|
|
|
7
|
- <result column="filter_value" property="filterValue" jdbcType="VARCHAR" />
|
|
|
8
|
- <result column="type" property="type" jdbcType="VARCHAR" />
|
|
|
9
|
- <result column="status" property="status" jdbcType="BIT" />
|
|
|
10
|
- <result column="message_router_reciver_id" property="messageRouterReciverId" jdbcType="VARCHAR" />
|
|
|
11
|
- <result column="creat_time" property="creatTime" jdbcType="TIMESTAMP" />
|
|
|
12
|
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
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="com.sunyo.wlpt.message.bus.service.mapper.MessageRouterReciverFilterMapper">
|
|
|
4
|
+ <resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
|
|
5
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
6
|
+ <result column="filter" jdbcType="VARCHAR" property="filter" />
|
|
|
7
|
+ <result column="filter_value" jdbcType="VARCHAR" property="filterValue" />
|
|
|
8
|
+ <result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
9
|
+ <result column="status" jdbcType="BIT" property="status" />
|
|
|
10
|
+ <result column="message_router_reciver_id" jdbcType="VARCHAR" property="messageRouterReciverId" />
|
|
|
11
|
+ <result column="creat_time" jdbcType="TIMESTAMP" property="creatTime" />
|
|
|
12
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
13
|
</resultMap>
|
13
|
</resultMap>
|
14
|
- <sql id="Base_Column_List" >
|
14
|
+ <sql id="Base_Column_List">
|
15
|
id, filter, filter_value, type, status, message_router_reciver_id, creat_time, update_time
|
15
|
id, filter, filter_value, type, status, message_router_reciver_id, creat_time, update_time
|
16
|
</sql>
|
16
|
</sql>
|
17
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
17
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
18
|
select
|
18
|
select
|
19
|
<include refid="Base_Column_List" />
|
19
|
<include refid="Base_Column_List" />
|
20
|
from message_router_reciver_filter
|
20
|
from message_router_reciver_filter
|
21
|
where id = #{id,jdbcType=VARCHAR}
|
21
|
where id = #{id,jdbcType=VARCHAR}
|
22
|
</select>
|
22
|
</select>
|
23
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
23
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
24
|
delete from message_router_reciver_filter
|
24
|
delete from message_router_reciver_filter
|
25
|
where id = #{id,jdbcType=VARCHAR}
|
25
|
where id = #{id,jdbcType=VARCHAR}
|
26
|
</delete>
|
26
|
</delete>
|
27
|
- <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
27
|
+ <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
28
|
insert into message_router_reciver_filter (id, filter, filter_value,
|
28
|
insert into message_router_reciver_filter (id, filter, filter_value,
|
29
|
type, status, message_router_reciver_id,
|
29
|
type, status, message_router_reciver_id,
|
30
|
creat_time, update_time)
|
30
|
creat_time, update_time)
|
|
@@ -32,89 +32,89 @@ |
|
@@ -32,89 +32,89 @@ |
32
|
#{type,jdbcType=VARCHAR}, #{status,jdbcType=BIT}, #{messageRouterReciverId,jdbcType=VARCHAR},
|
32
|
#{type,jdbcType=VARCHAR}, #{status,jdbcType=BIT}, #{messageRouterReciverId,jdbcType=VARCHAR},
|
33
|
#{creatTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
33
|
#{creatTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
34
|
</insert>
|
34
|
</insert>
|
35
|
- <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
35
|
+ <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
36
|
insert into message_router_reciver_filter
|
36
|
insert into message_router_reciver_filter
|
37
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
38
|
- <if test="id != null" >
|
37
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
38
|
+ <if test="id != null">
|
39
|
id,
|
39
|
id,
|
40
|
</if>
|
40
|
</if>
|
41
|
- <if test="filter != null" >
|
41
|
+ <if test="filter != null">
|
42
|
filter,
|
42
|
filter,
|
43
|
</if>
|
43
|
</if>
|
44
|
- <if test="filterValue != null" >
|
44
|
+ <if test="filterValue != null">
|
45
|
filter_value,
|
45
|
filter_value,
|
46
|
</if>
|
46
|
</if>
|
47
|
- <if test="type != null" >
|
47
|
+ <if test="type != null">
|
48
|
type,
|
48
|
type,
|
49
|
</if>
|
49
|
</if>
|
50
|
- <if test="status != null" >
|
50
|
+ <if test="status != null">
|
51
|
status,
|
51
|
status,
|
52
|
</if>
|
52
|
</if>
|
53
|
- <if test="messageRouterReciverId != null" >
|
53
|
+ <if test="messageRouterReciverId != null">
|
54
|
message_router_reciver_id,
|
54
|
message_router_reciver_id,
|
55
|
</if>
|
55
|
</if>
|
56
|
- <if test="creatTime != null" >
|
56
|
+ <if test="creatTime != null">
|
57
|
creat_time,
|
57
|
creat_time,
|
58
|
</if>
|
58
|
</if>
|
59
|
- <if test="updateTime != null" >
|
59
|
+ <if test="updateTime != null">
|
60
|
update_time,
|
60
|
update_time,
|
61
|
</if>
|
61
|
</if>
|
62
|
</trim>
|
62
|
</trim>
|
63
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
64
|
- <if test="id != null" >
|
63
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
64
|
+ <if test="id != null">
|
65
|
#{id,jdbcType=VARCHAR},
|
65
|
#{id,jdbcType=VARCHAR},
|
66
|
</if>
|
66
|
</if>
|
67
|
- <if test="filter != null" >
|
67
|
+ <if test="filter != null">
|
68
|
#{filter,jdbcType=VARCHAR},
|
68
|
#{filter,jdbcType=VARCHAR},
|
69
|
</if>
|
69
|
</if>
|
70
|
- <if test="filterValue != null" >
|
70
|
+ <if test="filterValue != null">
|
71
|
#{filterValue,jdbcType=VARCHAR},
|
71
|
#{filterValue,jdbcType=VARCHAR},
|
72
|
</if>
|
72
|
</if>
|
73
|
- <if test="type != null" >
|
73
|
+ <if test="type != null">
|
74
|
#{type,jdbcType=VARCHAR},
|
74
|
#{type,jdbcType=VARCHAR},
|
75
|
</if>
|
75
|
</if>
|
76
|
- <if test="status != null" >
|
76
|
+ <if test="status != null">
|
77
|
#{status,jdbcType=BIT},
|
77
|
#{status,jdbcType=BIT},
|
78
|
</if>
|
78
|
</if>
|
79
|
- <if test="messageRouterReciverId != null" >
|
79
|
+ <if test="messageRouterReciverId != null">
|
80
|
#{messageRouterReciverId,jdbcType=VARCHAR},
|
80
|
#{messageRouterReciverId,jdbcType=VARCHAR},
|
81
|
</if>
|
81
|
</if>
|
82
|
- <if test="creatTime != null" >
|
82
|
+ <if test="creatTime != null">
|
83
|
#{creatTime,jdbcType=TIMESTAMP},
|
83
|
#{creatTime,jdbcType=TIMESTAMP},
|
84
|
</if>
|
84
|
</if>
|
85
|
- <if test="updateTime != null" >
|
85
|
+ <if test="updateTime != null">
|
86
|
#{updateTime,jdbcType=TIMESTAMP},
|
86
|
#{updateTime,jdbcType=TIMESTAMP},
|
87
|
</if>
|
87
|
</if>
|
88
|
</trim>
|
88
|
</trim>
|
89
|
</insert>
|
89
|
</insert>
|
90
|
- <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
90
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
91
|
update message_router_reciver_filter
|
91
|
update message_router_reciver_filter
|
92
|
- <set >
|
|
|
93
|
- <if test="filter != null" >
|
92
|
+ <set>
|
|
|
93
|
+ <if test="filter != null">
|
94
|
filter = #{filter,jdbcType=VARCHAR},
|
94
|
filter = #{filter,jdbcType=VARCHAR},
|
95
|
</if>
|
95
|
</if>
|
96
|
- <if test="filterValue != null" >
|
96
|
+ <if test="filterValue != null">
|
97
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|
97
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|
98
|
</if>
|
98
|
</if>
|
99
|
- <if test="type != null" >
|
99
|
+ <if test="type != null">
|
100
|
type = #{type,jdbcType=VARCHAR},
|
100
|
type = #{type,jdbcType=VARCHAR},
|
101
|
</if>
|
101
|
</if>
|
102
|
- <if test="status != null" >
|
102
|
+ <if test="status != null">
|
103
|
status = #{status,jdbcType=BIT},
|
103
|
status = #{status,jdbcType=BIT},
|
104
|
</if>
|
104
|
</if>
|
105
|
- <if test="messageRouterReciverId != null" >
|
105
|
+ <if test="messageRouterReciverId != null">
|
106
|
message_router_reciver_id = #{messageRouterReciverId,jdbcType=VARCHAR},
|
106
|
message_router_reciver_id = #{messageRouterReciverId,jdbcType=VARCHAR},
|
107
|
</if>
|
107
|
</if>
|
108
|
- <if test="creatTime != null" >
|
108
|
+ <if test="creatTime != null">
|
109
|
creat_time = #{creatTime,jdbcType=TIMESTAMP},
|
109
|
creat_time = #{creatTime,jdbcType=TIMESTAMP},
|
110
|
</if>
|
110
|
</if>
|
111
|
- <if test="updateTime != null" >
|
111
|
+ <if test="updateTime != null">
|
112
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
112
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
113
|
</if>
|
113
|
</if>
|
114
|
</set>
|
114
|
</set>
|
115
|
where id = #{id,jdbcType=VARCHAR}
|
115
|
where id = #{id,jdbcType=VARCHAR}
|
116
|
</update>
|
116
|
</update>
|
117
|
- <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter" >
|
117
|
+ <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.model.MessageRouterReciverFilter">
|
118
|
update message_router_reciver_filter
|
118
|
update message_router_reciver_filter
|
119
|
set filter = #{filter,jdbcType=VARCHAR},
|
119
|
set filter = #{filter,jdbcType=VARCHAR},
|
120
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|
120
|
filter_value = #{filterValue,jdbcType=VARCHAR},
|