1
|
<?xml version="1.0" encoding="UTF-8"?>
|
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">
|
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.MessageNoteMapper">
|
3
|
<mapper namespace="com.sunyo.wlpt.message.bus.service.mapper.MessageNoteMapper">
|
4
|
- <resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
5
|
- <!--@mbg.generated-->
|
|
|
6
|
- <!--@Table message_note-->
|
|
|
7
|
- <id column="id" jdbcType="VARCHAR" property="id"/>
|
|
|
8
|
- <result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
|
|
9
|
- <result column="username" jdbcType="VARCHAR" property="username"/>
|
|
|
10
|
- <result column="server_name" jdbcType="VARCHAR" property="serverName"/>
|
|
|
11
|
- <result column="virtual_host_name" jdbcType="VARCHAR" property="virtualHostName"/>
|
|
|
12
|
- <result column="exchange_name" jdbcType="VARCHAR" property="exchangeName"/>
|
|
|
13
|
- <result column="routing_key_name" jdbcType="VARCHAR" property="routingKeyName"/>
|
|
|
14
|
- <result column="queue_name" jdbcType="VARCHAR" property="queueName"/>
|
|
|
15
|
- <result column="send_time" jdbcType="TIMESTAMP" property="sendTime"/>
|
|
|
16
|
- <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime"/>
|
|
|
17
|
- <result column="send_content" jdbcType="BLOB" property="sendContent"/>
|
|
|
18
|
- <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate"/>
|
|
|
19
|
- <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified"/>
|
|
|
20
|
- </resultMap>
|
|
|
21
|
- <sql id="Base_Column_List">
|
|
|
22
|
- <!--@mbg.generated-->
|
|
|
23
|
- id, user_id, username, `server_name`, virtual_host_name, exchange_name, routing_key_name,
|
|
|
24
|
- queue_name, send_time, receive_time, send_content, gmt_create, gmt_modified
|
|
|
25
|
- </sql>
|
|
|
26
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
27
|
- <!--@mbg.generated-->
|
|
|
28
|
- select
|
|
|
29
|
- <include refid="Base_Column_List"/>
|
|
|
30
|
- from message_note
|
|
|
31
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
32
|
- </select>
|
4
|
+ <resultMap id="BaseResultMap" type="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
5
|
+ <!--@mbg.generated-->
|
|
|
6
|
+ <!--@Table message_note-->
|
|
|
7
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
8
|
+ <result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
9
|
+ <result column="username" jdbcType="VARCHAR" property="username" />
|
|
|
10
|
+ <result column="server_id" jdbcType="VARCHAR" property="serverId" />
|
|
|
11
|
+ <result column="server_name" jdbcType="VARCHAR" property="serverName" />
|
|
|
12
|
+ <result column="virtual_host_id" jdbcType="VARCHAR" property="virtualHostId" />
|
|
|
13
|
+ <result column="virtual_host_name" jdbcType="VARCHAR" property="virtualHostName" />
|
|
|
14
|
+ <result column="exchange_id" jdbcType="VARCHAR" property="exchangeId" />
|
|
|
15
|
+ <result column="exchange_name" jdbcType="VARCHAR" property="exchangeName" />
|
|
|
16
|
+ <result column="queue_id" jdbcType="VARCHAR" property="queueId" />
|
|
|
17
|
+ <result column="queue_name" jdbcType="VARCHAR" property="queueName" />
|
|
|
18
|
+ <result column="routing_key_id" jdbcType="VARCHAR" property="routingKeyId" />
|
|
|
19
|
+ <result column="routing_key_name" jdbcType="VARCHAR" property="routingKeyName" />
|
|
|
20
|
+ <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
|
21
|
+ <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime" />
|
|
|
22
|
+ <result column="send_content" jdbcType="BLOB" property="sendContent" />
|
|
|
23
|
+ <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
|
|
|
24
|
+ <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
|
|
|
25
|
+ </resultMap>
|
|
|
26
|
+ <sql id="Base_Column_List">
|
|
|
27
|
+ <!--@mbg.generated-->
|
|
|
28
|
+ id, user_id, username, server_id, `server_name`, virtual_host_id, virtual_host_name,
|
|
|
29
|
+ exchange_id, exchange_name, queue_id, queue_name, routing_key_id, routing_key_name,
|
|
|
30
|
+ send_time, receive_time, send_content, gmt_create, gmt_modified
|
|
|
31
|
+ </sql>
|
|
|
32
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
33
|
+ <!--@mbg.generated-->
|
|
|
34
|
+ select
|
|
|
35
|
+ <include refid="Base_Column_List" />
|
|
|
36
|
+ from message_note
|
|
|
37
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
38
|
+ </select>
|
|
|
39
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
40
|
+ <!--@mbg.generated-->
|
|
|
41
|
+ delete from message_note
|
|
|
42
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
43
|
+ </delete>
|
|
|
44
|
+ <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
45
|
+ <!--@mbg.generated-->
|
|
|
46
|
+ insert into message_note (id, user_id, username,
|
|
|
47
|
+ server_id, `server_name`, virtual_host_id,
|
|
|
48
|
+ virtual_host_name, exchange_id, exchange_name,
|
|
|
49
|
+ queue_id, queue_name, routing_key_id,
|
|
|
50
|
+ routing_key_name, send_time, receive_time,
|
|
|
51
|
+ send_content, gmt_create, gmt_modified
|
|
|
52
|
+ )
|
|
|
53
|
+ values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
54
|
+ #{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR},
|
|
|
55
|
+ #{virtualHostName,jdbcType=VARCHAR}, #{exchangeId,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR},
|
|
|
56
|
+ #{queueId,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{routingKeyId,jdbcType=VARCHAR},
|
|
|
57
|
+ #{routingKeyName,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
58
|
+ #{sendContent,jdbcType=BLOB}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
59
|
+ )
|
|
|
60
|
+ </insert>
|
|
|
61
|
+ <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
62
|
+ <!--@mbg.generated-->
|
|
|
63
|
+ insert into message_note
|
|
|
64
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
65
|
+ <if test="id != null">
|
|
|
66
|
+ id,
|
|
|
67
|
+ </if>
|
|
|
68
|
+ <if test="userId != null">
|
|
|
69
|
+ user_id,
|
|
|
70
|
+ </if>
|
|
|
71
|
+ <if test="username != null">
|
|
|
72
|
+ username,
|
|
|
73
|
+ </if>
|
|
|
74
|
+ <if test="serverId != null">
|
|
|
75
|
+ server_id,
|
|
|
76
|
+ </if>
|
|
|
77
|
+ <if test="serverName != null">
|
|
|
78
|
+ `server_name`,
|
|
|
79
|
+ </if>
|
|
|
80
|
+ <if test="virtualHostId != null">
|
|
|
81
|
+ virtual_host_id,
|
|
|
82
|
+ </if>
|
|
|
83
|
+ <if test="virtualHostName != null">
|
|
|
84
|
+ virtual_host_name,
|
|
|
85
|
+ </if>
|
|
|
86
|
+ <if test="exchangeId != null">
|
|
|
87
|
+ exchange_id,
|
|
|
88
|
+ </if>
|
|
|
89
|
+ <if test="exchangeName != null">
|
|
|
90
|
+ exchange_name,
|
|
|
91
|
+ </if>
|
|
|
92
|
+ <if test="queueId != null">
|
|
|
93
|
+ queue_id,
|
|
|
94
|
+ </if>
|
|
|
95
|
+ <if test="queueName != null">
|
|
|
96
|
+ queue_name,
|
|
|
97
|
+ </if>
|
|
|
98
|
+ <if test="routingKeyId != null">
|
|
|
99
|
+ routing_key_id,
|
|
|
100
|
+ </if>
|
|
|
101
|
+ <if test="routingKeyName != null">
|
|
|
102
|
+ routing_key_name,
|
|
|
103
|
+ </if>
|
|
|
104
|
+ <if test="sendTime != null">
|
|
|
105
|
+ send_time,
|
|
|
106
|
+ </if>
|
|
|
107
|
+ <if test="receiveTime != null">
|
|
|
108
|
+ receive_time,
|
|
|
109
|
+ </if>
|
|
|
110
|
+ <if test="sendContent != null">
|
|
|
111
|
+ send_content,
|
|
|
112
|
+ </if>
|
|
|
113
|
+ <if test="gmtCreate != null">
|
|
|
114
|
+ gmt_create,
|
|
|
115
|
+ </if>
|
|
|
116
|
+ <if test="gmtModified != null">
|
|
|
117
|
+ gmt_modified,
|
|
|
118
|
+ </if>
|
|
|
119
|
+ </trim>
|
|
|
120
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
121
|
+ <if test="id != null">
|
|
|
122
|
+ #{id,jdbcType=VARCHAR},
|
|
|
123
|
+ </if>
|
|
|
124
|
+ <if test="userId != null">
|
|
|
125
|
+ #{userId,jdbcType=VARCHAR},
|
|
|
126
|
+ </if>
|
|
|
127
|
+ <if test="username != null">
|
|
|
128
|
+ #{username,jdbcType=VARCHAR},
|
|
|
129
|
+ </if>
|
|
|
130
|
+ <if test="serverId != null">
|
|
|
131
|
+ #{serverId,jdbcType=VARCHAR},
|
|
|
132
|
+ </if>
|
|
|
133
|
+ <if test="serverName != null">
|
|
|
134
|
+ #{serverName,jdbcType=VARCHAR},
|
|
|
135
|
+ </if>
|
|
|
136
|
+ <if test="virtualHostId != null">
|
|
|
137
|
+ #{virtualHostId,jdbcType=VARCHAR},
|
|
|
138
|
+ </if>
|
|
|
139
|
+ <if test="virtualHostName != null">
|
|
|
140
|
+ #{virtualHostName,jdbcType=VARCHAR},
|
|
|
141
|
+ </if>
|
|
|
142
|
+ <if test="exchangeId != null">
|
|
|
143
|
+ #{exchangeId,jdbcType=VARCHAR},
|
|
|
144
|
+ </if>
|
|
|
145
|
+ <if test="exchangeName != null">
|
|
|
146
|
+ #{exchangeName,jdbcType=VARCHAR},
|
|
|
147
|
+ </if>
|
|
|
148
|
+ <if test="queueId != null">
|
|
|
149
|
+ #{queueId,jdbcType=VARCHAR},
|
|
|
150
|
+ </if>
|
|
|
151
|
+ <if test="queueName != null">
|
|
|
152
|
+ #{queueName,jdbcType=VARCHAR},
|
|
|
153
|
+ </if>
|
|
|
154
|
+ <if test="routingKeyId != null">
|
|
|
155
|
+ #{routingKeyId,jdbcType=VARCHAR},
|
|
|
156
|
+ </if>
|
|
|
157
|
+ <if test="routingKeyName != null">
|
|
|
158
|
+ #{routingKeyName,jdbcType=VARCHAR},
|
|
|
159
|
+ </if>
|
|
|
160
|
+ <if test="sendTime != null">
|
|
|
161
|
+ #{sendTime,jdbcType=TIMESTAMP},
|
|
|
162
|
+ </if>
|
|
|
163
|
+ <if test="receiveTime != null">
|
|
|
164
|
+ #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
165
|
+ </if>
|
|
|
166
|
+ <if test="sendContent != null">
|
|
|
167
|
+ #{sendContent,jdbcType=BLOB},
|
|
|
168
|
+ </if>
|
|
|
169
|
+ <if test="gmtCreate != null">
|
|
|
170
|
+ #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
171
|
+ </if>
|
|
|
172
|
+ <if test="gmtModified != null">
|
|
|
173
|
+ #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
174
|
+ </if>
|
|
|
175
|
+ </trim>
|
|
|
176
|
+ </insert>
|
|
|
177
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
178
|
+ <!--@mbg.generated-->
|
|
|
179
|
+ update message_note
|
|
|
180
|
+ <set>
|
|
|
181
|
+ <if test="userId != null">
|
|
|
182
|
+ user_id = #{userId,jdbcType=VARCHAR},
|
|
|
183
|
+ </if>
|
|
|
184
|
+ <if test="username != null">
|
|
|
185
|
+ username = #{username,jdbcType=VARCHAR},
|
|
|
186
|
+ </if>
|
|
|
187
|
+ <if test="serverId != null">
|
|
|
188
|
+ server_id = #{serverId,jdbcType=VARCHAR},
|
|
|
189
|
+ </if>
|
|
|
190
|
+ <if test="serverName != null">
|
|
|
191
|
+ `server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
192
|
+ </if>
|
|
|
193
|
+ <if test="virtualHostId != null">
|
|
|
194
|
+ virtual_host_id = #{virtualHostId,jdbcType=VARCHAR},
|
|
|
195
|
+ </if>
|
|
|
196
|
+ <if test="virtualHostName != null">
|
|
|
197
|
+ virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
198
|
+ </if>
|
|
|
199
|
+ <if test="exchangeId != null">
|
|
|
200
|
+ exchange_id = #{exchangeId,jdbcType=VARCHAR},
|
|
|
201
|
+ </if>
|
|
|
202
|
+ <if test="exchangeName != null">
|
|
|
203
|
+ exchange_name = #{exchangeName,jdbcType=VARCHAR},
|
|
|
204
|
+ </if>
|
|
|
205
|
+ <if test="queueId != null">
|
|
|
206
|
+ queue_id = #{queueId,jdbcType=VARCHAR},
|
|
|
207
|
+ </if>
|
|
|
208
|
+ <if test="queueName != null">
|
|
|
209
|
+ queue_name = #{queueName,jdbcType=VARCHAR},
|
|
|
210
|
+ </if>
|
|
|
211
|
+ <if test="routingKeyId != null">
|
|
|
212
|
+ routing_key_id = #{routingKeyId,jdbcType=VARCHAR},
|
|
|
213
|
+ </if>
|
|
|
214
|
+ <if test="routingKeyName != null">
|
|
|
215
|
+ routing_key_name = #{routingKeyName,jdbcType=VARCHAR},
|
|
|
216
|
+ </if>
|
|
|
217
|
+ <if test="sendTime != null">
|
|
|
218
|
+ send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
219
|
+ </if>
|
|
|
220
|
+ <if test="receiveTime != null">
|
|
|
221
|
+ receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
222
|
+ </if>
|
|
|
223
|
+ <if test="sendContent != null">
|
|
|
224
|
+ send_content = #{sendContent,jdbcType=BLOB},
|
|
|
225
|
+ </if>
|
|
|
226
|
+ <if test="gmtCreate != null">
|
|
|
227
|
+ gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
228
|
+ </if>
|
|
|
229
|
+ <if test="gmtModified != null">
|
|
|
230
|
+ gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
231
|
+ </if>
|
|
|
232
|
+ </set>
|
|
|
233
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
234
|
+ </update>
|
|
|
235
|
+ <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
236
|
+ <!--@mbg.generated-->
|
|
|
237
|
+ update message_note
|
|
|
238
|
+ set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
239
|
+ username = #{username,jdbcType=VARCHAR},
|
|
|
240
|
+ server_id = #{serverId,jdbcType=VARCHAR},
|
|
|
241
|
+ `server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
242
|
+ virtual_host_id = #{virtualHostId,jdbcType=VARCHAR},
|
|
|
243
|
+ virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
244
|
+ exchange_id = #{exchangeId,jdbcType=VARCHAR},
|
|
|
245
|
+ exchange_name = #{exchangeName,jdbcType=VARCHAR},
|
|
|
246
|
+ queue_id = #{queueId,jdbcType=VARCHAR},
|
|
|
247
|
+ queue_name = #{queueName,jdbcType=VARCHAR},
|
|
|
248
|
+ routing_key_id = #{routingKeyId,jdbcType=VARCHAR},
|
|
|
249
|
+ routing_key_name = #{routingKeyName,jdbcType=VARCHAR},
|
|
|
250
|
+ send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
251
|
+ receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
252
|
+ send_content = #{sendContent,jdbcType=BLOB},
|
|
|
253
|
+ gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
254
|
+ gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
255
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
256
|
+ </update>
|
33
|
<!-- 获取,消息收发记录列表 -->
|
257
|
<!-- 获取,消息收发记录列表 -->
|
34
|
- <select id="selectMessageNoteList" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote"
|
|
|
35
|
- resultMap="BaseResultMap">
|
258
|
+ <select id="selectMessageNoteList" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote" resultMap="BaseResultMap">
|
36
|
select
|
259
|
select
|
37
|
- <include refid="Base_Column_List"/>
|
260
|
+ <include refid="Base_Column_List" />
|
38
|
from message_note
|
261
|
from message_note
|
39
|
<where>
|
262
|
<where>
|
40
|
<!-- 所属用户登陆名称 -->
|
263
|
<!-- 所属用户登陆名称 -->
|
|
@@ -72,169 +295,4 @@ |
|
@@ -72,169 +295,4 @@ |
72
|
</where>
|
295
|
</where>
|
73
|
</select>
|
296
|
</select>
|
74
|
|
297
|
|
75
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
76
|
- <!--@mbg.generated-->
|
|
|
77
|
- delete from message_note
|
|
|
78
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
79
|
- </delete>
|
|
|
80
|
- <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
81
|
- <!--@mbg.generated-->
|
|
|
82
|
- insert into message_note (id, user_id, username,
|
|
|
83
|
- `server_name`, virtual_host_name, exchange_name,
|
|
|
84
|
- routing_key_name, queue_name, send_time,
|
|
|
85
|
- receive_time, send_content, gmt_create,
|
|
|
86
|
- gmt_modified)
|
|
|
87
|
- values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
88
|
- #{serverName,jdbcType=VARCHAR}, #{virtualHostName,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR},
|
|
|
89
|
- #{routingKeyName,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP},
|
|
|
90
|
- #{receiveTime,jdbcType=TIMESTAMP}, #{sendContent,jdbcType=BLOB}, #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
91
|
- #{gmtModified,jdbcType=TIMESTAMP})
|
|
|
92
|
- </insert>
|
|
|
93
|
- <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
94
|
- <!--@mbg.generated-->
|
|
|
95
|
- insert into message_note
|
|
|
96
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
97
|
- <if test="id != null">
|
|
|
98
|
- id,
|
|
|
99
|
- </if>
|
|
|
100
|
- <if test="userId != null">
|
|
|
101
|
- user_id,
|
|
|
102
|
- </if>
|
|
|
103
|
- <if test="username != null">
|
|
|
104
|
- username,
|
|
|
105
|
- </if>
|
|
|
106
|
- <if test="serverName != null">
|
|
|
107
|
- `server_name`,
|
|
|
108
|
- </if>
|
|
|
109
|
- <if test="virtualHostName != null">
|
|
|
110
|
- virtual_host_name,
|
|
|
111
|
- </if>
|
|
|
112
|
- <if test="exchangeName != null">
|
|
|
113
|
- exchange_name,
|
|
|
114
|
- </if>
|
|
|
115
|
- <if test="routingKeyName != null">
|
|
|
116
|
- routing_key_name,
|
|
|
117
|
- </if>
|
|
|
118
|
- <if test="queueName != null">
|
|
|
119
|
- queue_name,
|
|
|
120
|
- </if>
|
|
|
121
|
- <if test="sendTime != null">
|
|
|
122
|
- send_time,
|
|
|
123
|
- </if>
|
|
|
124
|
- <if test="receiveTime != null">
|
|
|
125
|
- receive_time,
|
|
|
126
|
- </if>
|
|
|
127
|
- <if test="sendContent != null">
|
|
|
128
|
- send_content,
|
|
|
129
|
- </if>
|
|
|
130
|
- <if test="gmtCreate != null">
|
|
|
131
|
- gmt_create,
|
|
|
132
|
- </if>
|
|
|
133
|
- <if test="gmtModified != null">
|
|
|
134
|
- gmt_modified,
|
|
|
135
|
- </if>
|
|
|
136
|
- </trim>
|
|
|
137
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
138
|
- <if test="id != null">
|
|
|
139
|
- #{id,jdbcType=VARCHAR},
|
|
|
140
|
- </if>
|
|
|
141
|
- <if test="userId != null">
|
|
|
142
|
- #{userId,jdbcType=VARCHAR},
|
|
|
143
|
- </if>
|
|
|
144
|
- <if test="username != null">
|
|
|
145
|
- #{username,jdbcType=VARCHAR},
|
|
|
146
|
- </if>
|
|
|
147
|
- <if test="serverName != null">
|
|
|
148
|
- #{serverName,jdbcType=VARCHAR},
|
|
|
149
|
- </if>
|
|
|
150
|
- <if test="virtualHostName != null">
|
|
|
151
|
- #{virtualHostName,jdbcType=VARCHAR},
|
|
|
152
|
- </if>
|
|
|
153
|
- <if test="exchangeName != null">
|
|
|
154
|
- #{exchangeName,jdbcType=VARCHAR},
|
|
|
155
|
- </if>
|
|
|
156
|
- <if test="routingKeyName != null">
|
|
|
157
|
- #{routingKeyName,jdbcType=VARCHAR},
|
|
|
158
|
- </if>
|
|
|
159
|
- <if test="queueName != null">
|
|
|
160
|
- #{queueName,jdbcType=VARCHAR},
|
|
|
161
|
- </if>
|
|
|
162
|
- <if test="sendTime != null">
|
|
|
163
|
- #{sendTime,jdbcType=TIMESTAMP},
|
|
|
164
|
- </if>
|
|
|
165
|
- <if test="receiveTime != null">
|
|
|
166
|
- #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
167
|
- </if>
|
|
|
168
|
- <if test="sendContent != null">
|
|
|
169
|
- #{sendContent,jdbcType=BLOB},
|
|
|
170
|
- </if>
|
|
|
171
|
- <if test="gmtCreate != null">
|
|
|
172
|
- #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
173
|
- </if>
|
|
|
174
|
- <if test="gmtModified != null">
|
|
|
175
|
- #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
176
|
- </if>
|
|
|
177
|
- </trim>
|
|
|
178
|
- </insert>
|
|
|
179
|
- <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
180
|
- <!--@mbg.generated-->
|
|
|
181
|
- update message_note
|
|
|
182
|
- <set>
|
|
|
183
|
- <if test="userId != null">
|
|
|
184
|
- user_id = #{userId,jdbcType=VARCHAR},
|
|
|
185
|
- </if>
|
|
|
186
|
- <if test="username != null">
|
|
|
187
|
- username = #{username,jdbcType=VARCHAR},
|
|
|
188
|
- </if>
|
|
|
189
|
- <if test="serverName != null">
|
|
|
190
|
- `server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
191
|
- </if>
|
|
|
192
|
- <if test="virtualHostName != null">
|
|
|
193
|
- virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
194
|
- </if>
|
|
|
195
|
- <if test="exchangeName != null">
|
|
|
196
|
- exchange_name = #{exchangeName,jdbcType=VARCHAR},
|
|
|
197
|
- </if>
|
|
|
198
|
- <if test="routingKeyName != null">
|
|
|
199
|
- routing_key_name = #{routingKeyName,jdbcType=VARCHAR},
|
|
|
200
|
- </if>
|
|
|
201
|
- <if test="queueName != null">
|
|
|
202
|
- queue_name = #{queueName,jdbcType=VARCHAR},
|
|
|
203
|
- </if>
|
|
|
204
|
- <if test="sendTime != null">
|
|
|
205
|
- send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
206
|
- </if>
|
|
|
207
|
- <if test="receiveTime != null">
|
|
|
208
|
- receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
209
|
- </if>
|
|
|
210
|
- <if test="sendContent != null">
|
|
|
211
|
- send_content = #{sendContent,jdbcType=BLOB},
|
|
|
212
|
- </if>
|
|
|
213
|
- <if test="gmtCreate != null">
|
|
|
214
|
- gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
215
|
- </if>
|
|
|
216
|
- <if test="gmtModified != null">
|
|
|
217
|
- gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
|
|
|
218
|
- </if>
|
|
|
219
|
- </set>
|
|
|
220
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
221
|
- </update>
|
|
|
222
|
- <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote">
|
|
|
223
|
- <!--@mbg.generated-->
|
|
|
224
|
- update message_note
|
|
|
225
|
- set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
226
|
- username = #{username,jdbcType=VARCHAR},
|
|
|
227
|
- `server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
228
|
- virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
229
|
- exchange_name = #{exchangeName,jdbcType=VARCHAR},
|
|
|
230
|
- routing_key_name = #{routingKeyName,jdbcType=VARCHAR},
|
|
|
231
|
- queue_name = #{queueName,jdbcType=VARCHAR},
|
|
|
232
|
- send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
233
|
- receive_time = #{receiveTime,jdbcType=TIMESTAMP},
|
|
|
234
|
- send_content = #{sendContent,jdbcType=BLOB},
|
|
|
235
|
- gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
236
|
- gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
237
|
- where id = #{id,jdbcType=VARCHAR}
|
|
|
238
|
- </update>
|
|
|
239
|
-
|
|
|
240
|
-</mapper> |
298
|
+</mapper> |