作者 王勇

消息收发表,添加字段

@@ -3,15 +3,14 @@ package com.sunyo.wlpt.message.bus.service.domain; @@ -3,15 +3,14 @@ package com.sunyo.wlpt.message.bus.service.domain;
3 import java.io.Serializable; 3 import java.io.Serializable;
4 import java.util.Date; 4 import java.util.Date;
5 5
6 -import com.fasterxml.jackson.annotation.JsonFormat;  
7 import lombok.AllArgsConstructor; 6 import lombok.AllArgsConstructor;
8 import lombok.Data; 7 import lombok.Data;
9 import lombok.NoArgsConstructor; 8 import lombok.NoArgsConstructor;
10 9
11 /** 10 /**
12 * @author 子诚 11 * @author 子诚
13 - * Description:消息收发记录表(存储七天)  
14 - * 时间:2020/7/2 15:21 12 + * Description:消息收发记录表(默认存储七天)
  13 + * 时间:2020/7/13 18:58
15 */ 14 */
16 15
17 @Data 16 @Data
@@ -19,7 +18,7 @@ import lombok.NoArgsConstructor; @@ -19,7 +18,7 @@ import lombok.NoArgsConstructor;
19 @NoArgsConstructor 18 @NoArgsConstructor
20 public class MessageNote implements Serializable { 19 public class MessageNote implements Serializable {
21 20
22 - private static final long serialVersionUID = 6971204112114471516L; 21 + private static final long serialVersionUID = 4952900873210696428L;
23 22
24 /** 23 /**
25 * 消息收发记录表的ID 24 * 消息收发记录表的ID
@@ -30,67 +29,70 @@ public class MessageNote implements Serializable { @@ -30,67 +29,70 @@ public class MessageNote implements Serializable {
30 * 用户的ID 29 * 用户的ID
31 */ 30 */
32 private String userId; 31 private String userId;
  32 +
33 /** 33 /**
34 - * 所属虚拟主机的ID 34 + * 所属用户登陆名称
35 */ 35 */
36 - private String virtualHostId; 36 + private String username;
37 37
38 /** 38 /**
39 - * 所属交换机的ID 39 + * 所属服务器的ID
40 */ 40 */
41 - private String exchangeId; 41 + private String serverId;
42 42
43 /** 43 /**
44 - * 所属队列的ID 44 + * 所属服务器名称
45 */ 45 */
46 - private String queueId; 46 + private String serverName;
47 47
48 /** 48 /**
49 - * 所属路由键的ID 49 + * 所属虚拟主机的ID
50 */ 50 */
51 - private String routingKeyId; 51 + private String virtualHostId;
52 52
  53 + /**
  54 + * 所属虚拟主机名称
  55 + */
  56 + private String virtualHostName;
53 57
54 /** 58 /**
55 - * 用户登陆名称 59 + * 所属交换机的ID
56 */ 60 */
57 - private String username; 61 + private String exchangeId;
58 62
59 /** 63 /**
60 - * 服务器名称 64 + * 所属交换机名称
61 */ 65 */
62 - private String serverName; 66 + private String exchangeName;
63 67
64 /** 68 /**
65 - * 虚拟主机名称 69 + * 所属队列的ID
66 */ 70 */
67 - private String virtualHostName; 71 + private String queueId;
68 72
69 /** 73 /**
70 - * 交换机名称 74 + * 所属队列名称
71 */ 75 */
72 - private String exchangeName; 76 + private String queueName;
73 77
74 /** 78 /**
75 - * routing_key的名称 79 + * 所属路由键的ID
76 */ 80 */
77 - private String routingKeyName; 81 + private String routingKeyId;
78 82
79 /** 83 /**
80 - * 队列名称 84 + * 所属路由键的名称
81 */ 85 */
82 - private String queueName; 86 + private String routingKeyName;
83 87
84 /** 88 /**
85 * 消息发送时间 89 * 消息发送时间
86 */ 90 */
87 - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  
88 private Date sendTime; 91 private Date sendTime;
89 92
90 /** 93 /**
91 * 消息获取时间 94 * 消息获取时间
92 */ 95 */
93 - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  
94 private Date receiveTime; 96 private Date receiveTime;
95 97
96 /** 98 /**
@@ -101,12 +103,11 @@ public class MessageNote implements Serializable { @@ -101,12 +103,11 @@ public class MessageNote implements Serializable {
101 /** 103 /**
102 * 创建时间 104 * 创建时间
103 */ 105 */
104 - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  
105 private Date gmtCreate; 106 private Date gmtCreate;
106 107
107 /** 108 /**
108 * 修改时间 109 * 修改时间
109 */ 110 */
110 - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  
111 private Date gmtModified; 111 private Date gmtModified;
112 -} 112 +
  113 +}
1 package com.sunyo.wlpt.message.bus.service.mapper; 1 package com.sunyo.wlpt.message.bus.service.mapper;
2 2
3 import com.sunyo.wlpt.message.bus.service.domain.MessageNote; 3 import com.sunyo.wlpt.message.bus.service.domain.MessageNote;
4 -import org.apache.ibatis.annotations.Mapper;  
5 -  
6 -import java.util.List; 4 +import org.apache.ibatis.annotations.Mapper;import java.util.List;
7 5
8 /** 6 /**
9 * @author 子诚 7 * @author 子诚
10 * Description: 8 * Description:
11 - * 时间:2020/7/2 15:21 9 + * 时间:2020/7/13 18:58
12 */ 10 */
13 @Mapper 11 @Mapper
14 public interface MessageNoteMapper { 12 public interface MessageNoteMapper {
15 -  
16 /** 13 /**
17 - * 删除,根据主键 14 + * delete by primary key
18 * 15 *
19 * @param id primaryKey 16 * @param id primaryKey
20 * @return deleteCount 17 * @return deleteCount
@@ -22,7 +19,7 @@ public interface MessageNoteMapper { @@ -22,7 +19,7 @@ public interface MessageNoteMapper {
22 int deleteByPrimaryKey(String id); 19 int deleteByPrimaryKey(String id);
23 20
24 /** 21 /**
25 - * 新增 22 + * insert record to table
26 * 23 *
27 * @param record the record 24 * @param record the record
28 * @return insert count 25 * @return insert count
@@ -30,7 +27,7 @@ public interface MessageNoteMapper { @@ -30,7 +27,7 @@ public interface MessageNoteMapper {
30 int insert(MessageNote record); 27 int insert(MessageNote record);
31 28
32 /** 29 /**
33 - * 新增,选择性 30 + * insert record to table selective
34 * 31 *
35 * @param record the record 32 * @param record the record
36 * @return insert count 33 * @return insert count
@@ -38,7 +35,7 @@ public interface MessageNoteMapper { @@ -38,7 +35,7 @@ public interface MessageNoteMapper {
38 int insertSelective(MessageNote record); 35 int insertSelective(MessageNote record);
39 36
40 /** 37 /**
41 - * 查询,根据主键 38 + * select by primary key
42 * 39 *
43 * @param id primary key 40 * @param id primary key
44 * @return object by primary key 41 * @return object by primary key
@@ -46,7 +43,7 @@ public interface MessageNoteMapper { @@ -46,7 +43,7 @@ public interface MessageNoteMapper {
46 MessageNote selectByPrimaryKey(String id); 43 MessageNote selectByPrimaryKey(String id);
47 44
48 /** 45 /**
49 - * 更新,根据主键,选择性 46 + * update record selective
50 * 47 *
51 * @param record the updated record 48 * @param record the updated record
52 * @return update count 49 * @return update count
@@ -54,7 +51,7 @@ public interface MessageNoteMapper { @@ -54,7 +51,7 @@ public interface MessageNoteMapper {
54 int updateByPrimaryKeySelective(MessageNote record); 51 int updateByPrimaryKeySelective(MessageNote record);
55 52
56 /** 53 /**
57 - * 更新,根据主键 54 + * update record
58 * 55 *
59 * @param record the updated record 56 * @param record the updated record
60 * @return update count 57 * @return update count
@@ -68,4 +65,4 @@ public interface MessageNoteMapper { @@ -68,4 +65,4 @@ public interface MessageNoteMapper {
68 * @return List<MessageNote> 65 * @return List<MessageNote>
69 */ 66 */
70 List<MessageNote> selectMessageNoteList(MessageNote messageNote); 67 List<MessageNote> selectMessageNoteList(MessageNote messageNote);
71 -} 68 +}
@@ -69,3 +69,4 @@ public interface MessageNoteService { @@ -69,3 +69,4 @@ public interface MessageNoteService {
69 PageInfo selectMessageNoteList(MessageNote messageNote, Integer pageNum, Integer pageSize); 69 PageInfo selectMessageNoteList(MessageNote messageNote, Integer pageNum, Integer pageSize);
70 } 70 }
71 71
  72 +
@@ -91,3 +91,4 @@ public class MessageNoteServiceImpl implements MessageNoteService { @@ -91,3 +91,4 @@ public class MessageNoteServiceImpl implements MessageNoteService {
91 91
92 } 92 }
93 93
  94 +
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>