正在显示
19 个修改的文件
包含
225 行增加
和
101 行删除
@@ -2,11 +2,9 @@ package com.sunyo.wlpt.message.bus.service.controller; | @@ -2,11 +2,9 @@ package com.sunyo.wlpt.message.bus.service.controller; | ||
2 | 2 | ||
3 | import com.fasterxml.jackson.annotation.JsonFormat; | 3 | import com.fasterxml.jackson.annotation.JsonFormat; |
4 | import com.github.pagehelper.PageInfo; | 4 | import com.github.pagehelper.PageInfo; |
5 | -import com.sunyo.wlpt.message.bus.service.domain.MessageNote; | ||
6 | -import com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete; | 5 | +import com.sunyo.wlpt.message.bus.service.domain.*; |
7 | import com.sunyo.wlpt.message.bus.service.response.ResultJson; | 6 | import com.sunyo.wlpt.message.bus.service.response.ResultJson; |
8 | -import com.sunyo.wlpt.message.bus.service.service.MessageNoteService; | ||
9 | -import com.sunyo.wlpt.message.bus.service.service.SchedulingDeleteService; | 7 | +import com.sunyo.wlpt.message.bus.service.service.*; |
10 | import com.sunyo.wlpt.message.bus.service.utils.IdUtils; | 8 | import com.sunyo.wlpt.message.bus.service.utils.IdUtils; |
11 | import org.springframework.scheduling.annotation.Scheduled; | 9 | import org.springframework.scheduling.annotation.Scheduled; |
12 | import org.springframework.web.bind.annotation.*; | 10 | import org.springframework.web.bind.annotation.*; |
@@ -25,6 +23,21 @@ import java.util.Date; | @@ -25,6 +23,21 @@ import java.util.Date; | ||
25 | public class MessageNoteController { | 23 | public class MessageNoteController { |
26 | 24 | ||
27 | @Resource | 25 | @Resource |
26 | + private BusServerService busServerService; | ||
27 | + | ||
28 | + @Resource | ||
29 | + private VirtualHostService virtualHostService; | ||
30 | + | ||
31 | + @Resource | ||
32 | + private BusExchangeService busExchangeService; | ||
33 | + | ||
34 | + @Resource | ||
35 | + private BusQueueService busQueueService; | ||
36 | + | ||
37 | + @Resource | ||
38 | + private RoutingKeyService routingKeyService; | ||
39 | + | ||
40 | + @Resource | ||
28 | private MessageNoteService messageNoteService; | 41 | private MessageNoteService messageNoteService; |
29 | 42 | ||
30 | @Resource | 43 | @Resource |
@@ -140,7 +153,7 @@ public class MessageNoteController { | @@ -140,7 +153,7 @@ public class MessageNoteController { | ||
140 | @PutMapping("/update") | 153 | @PutMapping("/update") |
141 | public ResultJson updateMessageNote(@RequestBody MessageNote messageNote) { | 154 | public ResultJson updateMessageNote(@RequestBody MessageNote messageNote) { |
142 | ResultJson result = new ResultJson<>(); | 155 | ResultJson result = new ResultJson<>(); |
143 | - int num = messageNoteService.updateByPrimaryKeySelective(messageNote); | 156 | + int num = messageNoteService.updateByPrimaryKeySelective(note_fillName(messageNote)); |
144 | if (num > 0) { | 157 | if (num > 0) { |
145 | result.setCode("200"); | 158 | result.setCode("200"); |
146 | result.setMsg("编辑-消息收发记录,成功"); | 159 | result.setMsg("编辑-消息收发记录,成功"); |
@@ -162,7 +175,10 @@ public class MessageNoteController { | @@ -162,7 +175,10 @@ public class MessageNoteController { | ||
162 | ResultJson result = new ResultJson<>(); | 175 | ResultJson result = new ResultJson<>(); |
163 | // 设置id | 176 | // 设置id |
164 | messageNote.setId(IdUtils.generateId()); | 177 | messageNote.setId(IdUtils.generateId()); |
165 | - int num = messageNoteService.insertSelective(messageNote); | 178 | + if (!"".equals(messageNote.getAlias_sendContent()) && messageNote.getAlias_sendContent() != null) { |
179 | + messageNote.setSendContent(messageNote.getAlias_sendContent().getBytes()); | ||
180 | + } | ||
181 | + int num = messageNoteService.insertSelective(note_fillName(messageNote)); | ||
166 | if (num > 0) { | 182 | if (num > 0) { |
167 | result.setCode("200"); | 183 | result.setCode("200"); |
168 | result.setMsg("添加-消息收发记录,成功"); | 184 | result.setMsg("添加-消息收发记录,成功"); |
@@ -188,4 +204,33 @@ public class MessageNoteController { | @@ -188,4 +204,33 @@ public class MessageNoteController { | ||
188 | // 定时自动删除 | 204 | // 定时自动删除 |
189 | messageNoteService.autoDelete(deleteTime); | 205 | messageNoteService.autoDelete(deleteTime); |
190 | } | 206 | } |
207 | + | ||
208 | + /** | ||
209 | + * 填充名称 | ||
210 | + * | ||
211 | + * @param messageNote {@link MessageNote} | ||
212 | + * @return | ||
213 | + */ | ||
214 | + public MessageNote note_fillName(MessageNote messageNote) { | ||
215 | + // 填充,服务器名称 | ||
216 | + BusServer busServer = busServerService.selectByPrimaryKey(messageNote.getServerId()); | ||
217 | + messageNote.setServerName(busServer.getServerName()); | ||
218 | + | ||
219 | + // 填充,虚拟主机名称 | ||
220 | + VirtualHost virtualHost = virtualHostService.selectByPrimaryKey(messageNote.getVirtualHostId()); | ||
221 | + messageNote.setVirtualHostName(virtualHost.getVirtualHostName()); | ||
222 | + | ||
223 | + // 填充,交换机名称 | ||
224 | + BusExchange busExchange = busExchangeService.selectByPrimaryKey(messageNote.getExchangeId()); | ||
225 | + messageNote.setExchangeName(busExchange.getExchangeName()); | ||
226 | + | ||
227 | + // 填充,队列名称 | ||
228 | + BusQueue busQueue = busQueueService.selectByPrimaryKey(messageNote.getQueueId()); | ||
229 | + messageNote.setQueueName(busQueue.getQueueName()); | ||
230 | + | ||
231 | + // 填充,路由键名称 | ||
232 | + RoutingKey routingKey = routingKeyService.selectByPrimaryKey(messageNote.getRoutingKeyId()); | ||
233 | + messageNote.setRoutingKeyName(routingKey.getRoutingKeyName()); | ||
234 | + return messageNote; | ||
235 | + } | ||
191 | } | 236 | } |
src/main/java/com/sunyo/wlpt/message/bus/service/controller/SchedulingDeleteController.java
0 → 100644
1 | +package com.sunyo.wlpt.message.bus.service.controller; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete; | ||
4 | +import com.sunyo.wlpt.message.bus.service.response.ResultJson; | ||
5 | +import com.sunyo.wlpt.message.bus.service.service.SchedulingDeleteService; | ||
6 | +import org.springframework.web.bind.annotation.*; | ||
7 | + | ||
8 | +import javax.annotation.Resource; | ||
9 | + | ||
10 | +/** | ||
11 | + * @author 子诚 | ||
12 | + * Description: | ||
13 | + * 时间:2020/7/15 16:58 | ||
14 | + */ | ||
15 | +@CrossOrigin | ||
16 | +@RequestMapping("bus/scheduling") | ||
17 | +@RestController | ||
18 | +public class SchedulingDeleteController { | ||
19 | + | ||
20 | + @Resource | ||
21 | + private SchedulingDeleteService schedulingDeleteService; | ||
22 | + | ||
23 | + | ||
24 | + /** | ||
25 | + * 获取删除时间 | ||
26 | + * | ||
27 | + * @return {@link ResultJson} | ||
28 | + */ | ||
29 | + @GetMapping("/get") | ||
30 | + public ResultJson getDeleteTime() { | ||
31 | + SchedulingDelete schedulingDelete = getSchedulingDelete(); | ||
32 | + return schedulingDelete.getDeleteTime() > 0 ? new ResultJson("200", "获取删除时间,成功", schedulingDelete) : new ResultJson("500", "获取删除时间,失败"); | ||
33 | + } | ||
34 | + | ||
35 | + | ||
36 | + /** | ||
37 | + * 设置删除时间 | ||
38 | + * | ||
39 | + * @param deleteTime 删除时间 | ||
40 | + * @return {@link ResultJson} | ||
41 | + */ | ||
42 | + @GetMapping("/set") | ||
43 | + public ResultJson setDeleteTime(Integer deleteTime) { | ||
44 | + SchedulingDelete schedulingDelete = getSchedulingDelete(); | ||
45 | + schedulingDelete.setDeleteTime(deleteTime); | ||
46 | + int num = schedulingDeleteService.updateByPrimaryKeySelective(schedulingDelete); | ||
47 | + return num > 0 ? new ResultJson("200", "修改删除时间,成功") : new ResultJson("500", "修改删除时间,失败"); | ||
48 | + } | ||
49 | + | ||
50 | + private SchedulingDelete getSchedulingDelete() { | ||
51 | + // 类型 | ||
52 | + String deleteType = "message_note"; | ||
53 | + // 首先获取可自主设置的默认时间 | ||
54 | + SchedulingDelete schedulingDelete = schedulingDeleteService.selectByType(deleteType); | ||
55 | + return schedulingDelete; | ||
56 | + } | ||
57 | +} |
@@ -35,6 +35,7 @@ public class UserMessageBindingController { | @@ -35,6 +35,7 @@ public class UserMessageBindingController { | ||
35 | 35 | ||
36 | @Resource | 36 | @Resource |
37 | private RoutingKeyService routingKeyService; | 37 | private RoutingKeyService routingKeyService; |
38 | + | ||
38 | @Resource | 39 | @Resource |
39 | private UserMessageBindingService userMessageBindingService; | 40 | private UserMessageBindingService userMessageBindingService; |
40 | 41 | ||
@@ -143,7 +144,7 @@ public class UserMessageBindingController { | @@ -143,7 +144,7 @@ public class UserMessageBindingController { | ||
143 | @PutMapping("/update") | 144 | @PutMapping("/update") |
144 | public ResultJson updateUserMessageBinding(@RequestBody UserMessageBinding userMessageBinding) { | 145 | public ResultJson updateUserMessageBinding(@RequestBody UserMessageBinding userMessageBinding) { |
145 | ResultJson result = new ResultJson<>(); | 146 | ResultJson result = new ResultJson<>(); |
146 | - int num = userMessageBindingService.updateByPrimaryKeySelective(fillName(userMessageBinding)); | 147 | + int num = userMessageBindingService.updateByPrimaryKeySelective(umb_fillName(userMessageBinding)); |
147 | if (num > 0) { | 148 | if (num > 0) { |
148 | result.setCode("200"); | 149 | result.setCode("200"); |
149 | result.setMsg("编辑-账户消息配置-信息,成功"); | 150 | result.setMsg("编辑-账户消息配置-信息,成功"); |
@@ -165,7 +166,7 @@ public class UserMessageBindingController { | @@ -165,7 +166,7 @@ public class UserMessageBindingController { | ||
165 | ResultJson result = new ResultJson<>(); | 166 | ResultJson result = new ResultJson<>(); |
166 | // 设置id | 167 | // 设置id |
167 | userMessageBinding.setId(IdUtils.generateId()); | 168 | userMessageBinding.setId(IdUtils.generateId()); |
168 | - int num = userMessageBindingService.insertSelective(fillName(userMessageBinding)); | 169 | + int num = userMessageBindingService.insertSelective(umb_fillName(userMessageBinding)); |
169 | if (num > 0) { | 170 | if (num > 0) { |
170 | result.setCode("200"); | 171 | result.setCode("200"); |
171 | result.setMsg("添加-账户消息配置-信息,成功"); | 172 | result.setMsg("添加-账户消息配置-信息,成功"); |
@@ -180,7 +181,7 @@ public class UserMessageBindingController { | @@ -180,7 +181,7 @@ public class UserMessageBindingController { | ||
180 | * 编辑 or 新增方法,根绝前端传递来的id值,来填充对应的name | 181 | * 编辑 or 新增方法,根绝前端传递来的id值,来填充对应的name |
181 | * 服务器id,虚拟主机id,交换机id,队列id,路由键id | 182 | * 服务器id,虚拟主机id,交换机id,队列id,路由键id |
182 | */ | 183 | */ |
183 | - public UserMessageBinding fillName(UserMessageBinding userMessageBinding) { | 184 | + public UserMessageBinding umb_fillName(UserMessageBinding userMessageBinding) { |
184 | // 填充,服务器名称 | 185 | // 填充,服务器名称 |
185 | BusServer busServer = busServerService.selectByPrimaryKey(userMessageBinding.getServerId()); | 186 | BusServer busServer = busServerService.selectByPrimaryKey(userMessageBinding.getServerId()); |
186 | userMessageBinding.setServerName(busServer.getServerName()); | 187 | userMessageBinding.setServerName(busServer.getServerName()); |
@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor; | @@ -10,7 +10,7 @@ import lombok.NoArgsConstructor; | ||
10 | /** | 10 | /** |
11 | * @author 子诚 | 11 | * @author 子诚 |
12 | * Description:消息收发记录表(默认存储七天) | 12 | * Description:消息收发记录表(默认存储七天) |
13 | - * 时间:2020/7/13 18:58 | 13 | + * 时间:2020/7/15 10:45 |
14 | */ | 14 | */ |
15 | 15 | ||
16 | @Data | 16 | @Data |
@@ -18,7 +18,7 @@ import lombok.NoArgsConstructor; | @@ -18,7 +18,7 @@ import lombok.NoArgsConstructor; | ||
18 | @NoArgsConstructor | 18 | @NoArgsConstructor |
19 | public class MessageNote implements Serializable { | 19 | public class MessageNote implements Serializable { |
20 | 20 | ||
21 | - private static final long serialVersionUID = 4952900873210696428L; | 21 | + private static final long serialVersionUID = -2119333801860569470L; |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * 消息收发记录表的ID | 24 | * 消息收发记录表的ID |
@@ -101,6 +101,16 @@ public class MessageNote implements Serializable { | @@ -101,6 +101,16 @@ public class MessageNote implements Serializable { | ||
101 | private byte[] sendContent; | 101 | private byte[] sendContent; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | + * 发送消息内容,别名 | ||
105 | + */ | ||
106 | + private String alias_sendContent; | ||
107 | + | ||
108 | + /** | ||
109 | + * 相关描述 | ||
110 | + */ | ||
111 | + private String description; | ||
112 | + | ||
113 | + /** | ||
104 | * 创建时间 | 114 | * 创建时间 |
105 | */ | 115 | */ |
106 | private Date gmtCreate; | 116 | private Date gmtCreate; |
1 | package com.sunyo.wlpt.message.bus.service.domain; | 1 | package com.sunyo.wlpt.message.bus.service.domain; |
2 | 2 | ||
3 | import java.io.Serializable; | 3 | import java.io.Serializable; |
4 | + | ||
4 | import lombok.AllArgsConstructor; | 5 | import lombok.AllArgsConstructor; |
5 | import lombok.Data; | 6 | import lombok.Data; |
6 | import lombok.NoArgsConstructor; | 7 | import lombok.NoArgsConstructor; |
@@ -8,14 +9,15 @@ import lombok.NoArgsConstructor; | @@ -8,14 +9,15 @@ import lombok.NoArgsConstructor; | ||
8 | /** | 9 | /** |
9 | * @author 子诚 | 10 | * @author 子诚 |
10 | * Description:自动定时删除的时间设置表 | 11 | * Description:自动定时删除的时间设置表 |
11 | - * 时间:2020/7/14 10:35 | 12 | + * 时间:2020/7/15 10:28 |
12 | */ | 13 | */ |
14 | + | ||
13 | @Data | 15 | @Data |
14 | @AllArgsConstructor | 16 | @AllArgsConstructor |
15 | @NoArgsConstructor | 17 | @NoArgsConstructor |
16 | public class SchedulingDelete implements Serializable { | 18 | public class SchedulingDelete implements Serializable { |
17 | 19 | ||
18 | - private static final long serialVersionUID = -3199487735394538126L; | 20 | + private static final long serialVersionUID = -4810544767961191508L; |
19 | 21 | ||
20 | /** | 22 | /** |
21 | * 时间设置表的ID | 23 | * 时间设置表的ID |
@@ -31,4 +33,10 @@ public class SchedulingDelete implements Serializable { | @@ -31,4 +33,10 @@ public class SchedulingDelete implements Serializable { | ||
31 | * 类型 | 33 | * 类型 |
32 | */ | 34 | */ |
33 | private String deleteType; | 35 | private String deleteType; |
36 | + | ||
37 | + /** | ||
38 | + * 相关描述 | ||
39 | + */ | ||
40 | + private String description; | ||
41 | + | ||
34 | } | 42 | } |
@@ -10,15 +10,14 @@ import lombok.NoArgsConstructor; | @@ -10,15 +10,14 @@ import lombok.NoArgsConstructor; | ||
10 | /** | 10 | /** |
11 | * @author 子诚 | 11 | * @author 子诚 |
12 | * Description:账户信息绑定配置表 | 12 | * Description:账户信息绑定配置表 |
13 | - * 时间:2020/7/13 18:03 | 13 | + * 时间:2020/7/15 10:37 |
14 | */ | 14 | */ |
15 | - | ||
16 | @Data | 15 | @Data |
17 | @AllArgsConstructor | 16 | @AllArgsConstructor |
18 | @NoArgsConstructor | 17 | @NoArgsConstructor |
19 | public class UserMessageBinding implements Serializable { | 18 | public class UserMessageBinding implements Serializable { |
20 | 19 | ||
21 | - private static final long serialVersionUID = 7133408333518754607L; | 20 | + private static final long serialVersionUID = 1036230195492305641L; |
22 | 21 | ||
23 | /** | 22 | /** |
24 | * 账户信息绑定配置表的ID | 23 | * 账户信息绑定配置表的ID |
@@ -91,6 +90,11 @@ public class UserMessageBinding implements Serializable { | @@ -91,6 +90,11 @@ public class UserMessageBinding implements Serializable { | ||
91 | private String subscriber; | 90 | private String subscriber; |
92 | 91 | ||
93 | /** | 92 | /** |
93 | + * 相关描述 | ||
94 | + */ | ||
95 | + private String description; | ||
96 | + | ||
97 | + /** | ||
94 | * 创建时间 | 98 | * 创建时间 |
95 | */ | 99 | */ |
96 | private Date gmtCreate; | 100 | private Date gmtCreate; |
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 | -import org.apache.ibatis.annotations.Param; | ||
6 | - | ||
7 | -import java.util.List; | 4 | +import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List; |
8 | 5 | ||
9 | /** | 6 | /** |
10 | * @author 子诚 | 7 | * @author 子诚 |
11 | * Description: | 8 | * Description: |
12 | - * 时间:2020/7/13 18:58 | 9 | + * 时间:2020/7/15 10:45 |
13 | */ | 10 | */ |
14 | @Mapper | 11 | @Mapper |
15 | public interface MessageNoteMapper { | 12 | public interface MessageNoteMapper { |
@@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Param; | @@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.Param; | ||
7 | /** | 7 | /** |
8 | * @author 子诚 | 8 | * @author 子诚 |
9 | * Description: | 9 | * Description: |
10 | - * 时间:2020/7/14 10:35 | 10 | + * 时间:2020/7/15 10:28 |
11 | */ | 11 | */ |
12 | @Mapper | 12 | @Mapper |
13 | public interface SchedulingDeleteMapper { | 13 | public interface SchedulingDeleteMapper { |
@@ -63,7 +63,7 @@ public interface SchedulingDeleteMapper { | @@ -63,7 +63,7 @@ public interface SchedulingDeleteMapper { | ||
63 | * 获取时间设置表 | 63 | * 获取时间设置表 |
64 | * | 64 | * |
65 | * @param deleteType 删除的类型 | 65 | * @param deleteType 删除的类型 |
66 | - * @return {@link SchedulingDelete } | 66 | + * @return {@link SchedulingDelete} |
67 | */ | 67 | */ |
68 | SchedulingDelete selectByType(@Param("deleteType") String deleteType); | 68 | SchedulingDelete selectByType(@Param("deleteType") String deleteType); |
69 | } | 69 | } |
@@ -6,7 +6,7 @@ import org.apache.ibatis.annotations.Mapper;import java.util.List; | @@ -6,7 +6,7 @@ import org.apache.ibatis.annotations.Mapper;import java.util.List; | ||
6 | /** | 6 | /** |
7 | * @author 子诚 | 7 | * @author 子诚 |
8 | * Description: | 8 | * Description: |
9 | - * 时间:2020/7/13 18:03 | 9 | + * 时间:2020/7/15 10:37 |
10 | */ | 10 | */ |
11 | @Mapper | 11 | @Mapper |
12 | public interface UserMessageBindingMapper { | 12 | public interface UserMessageBindingMapper { |
1 | package com.sunyo.wlpt.message.bus.service.service; | 1 | package com.sunyo.wlpt.message.bus.service.service; |
2 | 2 | ||
3 | import com.github.pagehelper.PageInfo; | 3 | import com.github.pagehelper.PageInfo; |
4 | -import com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding;import java.util.List; | 4 | +import com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding; |
5 | + | ||
6 | +import java.util.List; | ||
5 | 7 | ||
6 | /** | 8 | /** |
7 | * @author 子诚 | 9 | * @author 子诚 |
@@ -71,3 +73,4 @@ public interface UserMessageBindingService { | @@ -71,3 +73,4 @@ public interface UserMessageBindingService { | ||
71 | 73 | ||
72 | 74 | ||
73 | 75 | ||
76 | + |
@@ -15,6 +15,8 @@ import org.springframework.transaction.annotation.Transactional; | @@ -15,6 +15,8 @@ import org.springframework.transaction.annotation.Transactional; | ||
15 | 15 | ||
16 | import java.util.List; | 16 | import java.util.List; |
17 | 17 | ||
18 | +import static java.util.stream.Collectors.toList; | ||
19 | + | ||
18 | /** | 20 | /** |
19 | * @author 子诚 | 21 | * @author 子诚 |
20 | * Description: | 22 | * Description: |
@@ -85,6 +87,11 @@ public class MessageNoteServiceImpl implements MessageNoteService { | @@ -85,6 +87,11 @@ public class MessageNoteServiceImpl implements MessageNoteService { | ||
85 | public PageInfo selectMessageNoteList(MessageNote messageNote, Integer pageNum, Integer pageSize) { | 87 | public PageInfo selectMessageNoteList(MessageNote messageNote, Integer pageNum, Integer pageSize) { |
86 | PageHelper.startPage(pageNum, pageSize); | 88 | PageHelper.startPage(pageNum, pageSize); |
87 | List<MessageNote> messageNoteList = messageNoteMapper.selectMessageNoteList(messageNote); | 89 | List<MessageNote> messageNoteList = messageNoteMapper.selectMessageNoteList(messageNote); |
90 | + // 使用stream 并行将 byte[] 转换成 String | ||
91 | + messageNoteList.parallelStream().forEach(item -> { | ||
92 | + String content = new String(item.getSendContent()); | ||
93 | + item.setAlias_sendContent(content + ""); | ||
94 | + }); | ||
88 | PageInfo<MessageNote> pageInfo = new PageInfo<>(messageNoteList); | 95 | PageInfo<MessageNote> pageInfo = new PageInfo<>(messageNoteList); |
89 | return pageInfo; | 96 | return pageInfo; |
90 | } | 97 | } |
@@ -97,3 +104,4 @@ public class MessageNoteServiceImpl implements MessageNoteService { | @@ -97,3 +104,4 @@ public class MessageNoteServiceImpl implements MessageNoteService { | ||
97 | } | 104 | } |
98 | 105 | ||
99 | 106 | ||
107 | + |
1 | -package com.sunyo.wlpt.message.bus.service.vo; | ||
2 | - | ||
3 | -import com.sunyo.wlpt.message.bus.service.domain.*; | ||
4 | -import lombok.AllArgsConstructor; | ||
5 | -import lombok.Data; | ||
6 | -import lombok.NoArgsConstructor; | ||
7 | - | ||
8 | -import java.io.Serializable; | ||
9 | - | ||
10 | -/** | ||
11 | - * @author 子诚 | ||
12 | - * Description:UserMessageBinding的一个继承类,进行聚合 | ||
13 | - * 时间:2020/7/14 17:33 | ||
14 | - */ | ||
15 | -@Data | ||
16 | -@AllArgsConstructor | ||
17 | -@NoArgsConstructor | ||
18 | -public class UserMessageBindingVO extends UserMessageBinding implements Serializable { | ||
19 | - | ||
20 | - private static final long serialVersionUID = 5417123427960404665L; | ||
21 | - | ||
22 | - /** | ||
23 | - * 一条配置记录,对应一个服务器 | ||
24 | - */ | ||
25 | - private BusServer busServer; | ||
26 | - | ||
27 | - /** | ||
28 | - * 一条配置记录,对应一个虚拟主机 | ||
29 | - */ | ||
30 | - private VirtualHost virtualHost; | ||
31 | - | ||
32 | - /** | ||
33 | - * 一条配置记录,对应一个交换机 | ||
34 | - */ | ||
35 | - private BusExchange busExchange; | ||
36 | - | ||
37 | - /** | ||
38 | - * 一条配置记录,对应一个队列 | ||
39 | - */ | ||
40 | - private BusQueue busQueue; | ||
41 | - | ||
42 | - /** | ||
43 | - * 一条配置记录,对应一个路由键 | ||
44 | - */ | ||
45 | - private RoutingKey routingKey; | ||
46 | -} |
@@ -20,6 +20,7 @@ | @@ -20,6 +20,7 @@ | ||
20 | <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" /> | 20 | <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" /> |
21 | <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime" /> | 21 | <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime" /> |
22 | <result column="send_content" jdbcType="BLOB" property="sendContent" /> | 22 | <result column="send_content" jdbcType="BLOB" property="sendContent" /> |
23 | + <result column="description" jdbcType="VARCHAR" property="description" /> | ||
23 | <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" /> | 24 | <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" /> |
24 | <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" /> | 25 | <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" /> |
25 | </resultMap> | 26 | </resultMap> |
@@ -27,7 +28,7 @@ | @@ -27,7 +28,7 @@ | ||
27 | <!--@mbg.generated--> | 28 | <!--@mbg.generated--> |
28 | id, user_id, username, server_id, `server_name`, virtual_host_id, virtual_host_name, | 29 | 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 | 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 | + send_time, receive_time, send_content, description, gmt_create, gmt_modified |
31 | </sql> | 32 | </sql> |
32 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | 33 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
33 | <!--@mbg.generated--> | 34 | <!--@mbg.generated--> |
@@ -48,15 +49,15 @@ | @@ -48,15 +49,15 @@ | ||
48 | virtual_host_name, exchange_id, exchange_name, | 49 | virtual_host_name, exchange_id, exchange_name, |
49 | queue_id, queue_name, routing_key_id, | 50 | queue_id, queue_name, routing_key_id, |
50 | routing_key_name, send_time, receive_time, | 51 | routing_key_name, send_time, receive_time, |
51 | - send_content, gmt_create, gmt_modified | ||
52 | - ) | 52 | + send_content, description, gmt_create, |
53 | + gmt_modified) | ||
53 | values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, | 54 | values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, |
54 | #{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR}, | 55 | #{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR}, |
55 | #{virtualHostName,jdbcType=VARCHAR}, #{exchangeId,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR}, | 56 | #{virtualHostName,jdbcType=VARCHAR}, #{exchangeId,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR}, |
56 | #{queueId,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{routingKeyId,jdbcType=VARCHAR}, | 57 | #{queueId,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{routingKeyId,jdbcType=VARCHAR}, |
57 | #{routingKeyName,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, | 58 | #{routingKeyName,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, |
58 | - #{sendContent,jdbcType=BLOB}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP} | ||
59 | - ) | 59 | + #{sendContent,jdbcType=BLOB}, #{description,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, |
60 | + #{gmtModified,jdbcType=TIMESTAMP}) | ||
60 | </insert> | 61 | </insert> |
61 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote"> | 62 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.MessageNote"> |
62 | <!--@mbg.generated--> | 63 | <!--@mbg.generated--> |
@@ -110,6 +111,9 @@ | @@ -110,6 +111,9 @@ | ||
110 | <if test="sendContent != null"> | 111 | <if test="sendContent != null"> |
111 | send_content, | 112 | send_content, |
112 | </if> | 113 | </if> |
114 | + <if test="description != null"> | ||
115 | + description, | ||
116 | + </if> | ||
113 | <if test="gmtCreate != null"> | 117 | <if test="gmtCreate != null"> |
114 | gmt_create, | 118 | gmt_create, |
115 | </if> | 119 | </if> |
@@ -166,6 +170,9 @@ | @@ -166,6 +170,9 @@ | ||
166 | <if test="sendContent != null"> | 170 | <if test="sendContent != null"> |
167 | #{sendContent,jdbcType=BLOB}, | 171 | #{sendContent,jdbcType=BLOB}, |
168 | </if> | 172 | </if> |
173 | + <if test="description != null"> | ||
174 | + #{description,jdbcType=VARCHAR}, | ||
175 | + </if> | ||
169 | <if test="gmtCreate != null"> | 176 | <if test="gmtCreate != null"> |
170 | #{gmtCreate,jdbcType=TIMESTAMP}, | 177 | #{gmtCreate,jdbcType=TIMESTAMP}, |
171 | </if> | 178 | </if> |
@@ -223,6 +230,9 @@ | @@ -223,6 +230,9 @@ | ||
223 | <if test="sendContent != null"> | 230 | <if test="sendContent != null"> |
224 | send_content = #{sendContent,jdbcType=BLOB}, | 231 | send_content = #{sendContent,jdbcType=BLOB}, |
225 | </if> | 232 | </if> |
233 | + <if test="description != null"> | ||
234 | + description = #{description,jdbcType=VARCHAR}, | ||
235 | + </if> | ||
226 | <if test="gmtCreate != null"> | 236 | <if test="gmtCreate != null"> |
227 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, | 237 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, |
228 | </if> | 238 | </if> |
@@ -250,6 +260,7 @@ | @@ -250,6 +260,7 @@ | ||
250 | send_time = #{sendTime,jdbcType=TIMESTAMP}, | 260 | send_time = #{sendTime,jdbcType=TIMESTAMP}, |
251 | receive_time = #{receiveTime,jdbcType=TIMESTAMP}, | 261 | receive_time = #{receiveTime,jdbcType=TIMESTAMP}, |
252 | send_content = #{sendContent,jdbcType=BLOB}, | 262 | send_content = #{sendContent,jdbcType=BLOB}, |
263 | + description = #{description,jdbcType=VARCHAR}, | ||
253 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, | 264 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, |
254 | gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} | 265 | gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} |
255 | where id = #{id,jdbcType=VARCHAR} | 266 | where id = #{id,jdbcType=VARCHAR} |
@@ -298,6 +309,6 @@ | @@ -298,6 +309,6 @@ | ||
298 | <!-- 自动删除 message_note记录 --> | 309 | <!-- 自动删除 message_note记录 --> |
299 | <delete id="autoDelete" parameterType="java.lang.Integer"> | 310 | <delete id="autoDelete" parameterType="java.lang.Integer"> |
300 | delete from message_note | 311 | delete from message_note |
301 | - where to_days(now())-to_days(gmt_create) >= #{deleteTime,jdbcType=INTEGER} | 312 | + where to_days(now())-to_days(gmt_create) >= #{deleteTime,jdbcType=INTEGER} |
302 | </delete> | 313 | </delete> |
303 | </mapper> | 314 | </mapper> |
@@ -7,10 +7,11 @@ | @@ -7,10 +7,11 @@ | ||
7 | <id column="id" jdbcType="VARCHAR" property="id" /> | 7 | <id column="id" jdbcType="VARCHAR" property="id" /> |
8 | <result column="delete_time" jdbcType="INTEGER" property="deleteTime" /> | 8 | <result column="delete_time" jdbcType="INTEGER" property="deleteTime" /> |
9 | <result column="delete_type" jdbcType="VARCHAR" property="deleteType" /> | 9 | <result column="delete_type" jdbcType="VARCHAR" property="deleteType" /> |
10 | + <result column="description" jdbcType="VARCHAR" property="description" /> | ||
10 | </resultMap> | 11 | </resultMap> |
11 | <sql id="Base_Column_List"> | 12 | <sql id="Base_Column_List"> |
12 | <!--@mbg.generated--> | 13 | <!--@mbg.generated--> |
13 | - id, delete_time, delete_type | 14 | + id, delete_time, delete_type, description |
14 | </sql> | 15 | </sql> |
15 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | 16 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
16 | <!--@mbg.generated--> | 17 | <!--@mbg.generated--> |
@@ -19,19 +20,6 @@ | @@ -19,19 +20,6 @@ | ||
19 | from scheduling_delete | 20 | from scheduling_delete |
20 | where id = #{id,jdbcType=VARCHAR} | 21 | where id = #{id,jdbcType=VARCHAR} |
21 | </select> | 22 | </select> |
22 | - | ||
23 | - <select id="selectByType" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
24 | - select | ||
25 | - <include refid="Base_Column_List" /> | ||
26 | - from scheduling_delete | ||
27 | - <where> | ||
28 | - <!-- 删除类型 --> | ||
29 | - <if test="deleteType != null and deleteType !=''"> | ||
30 | - delete_type = #{deleteType,jdbcType=VARCHAR} | ||
31 | - </if> | ||
32 | - </where> | ||
33 | - | ||
34 | - </select> | ||
35 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | 23 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
36 | <!--@mbg.generated--> | 24 | <!--@mbg.generated--> |
37 | delete from scheduling_delete | 25 | delete from scheduling_delete |
@@ -39,10 +27,10 @@ | @@ -39,10 +27,10 @@ | ||
39 | </delete> | 27 | </delete> |
40 | <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> | 28 | <insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> |
41 | <!--@mbg.generated--> | 29 | <!--@mbg.generated--> |
42 | - insert into scheduling_delete (id, delete_time, delete_type | ||
43 | - ) | ||
44 | - values (#{id,jdbcType=VARCHAR}, #{deleteTime,jdbcType=INTEGER}, #{deleteType,jdbcType=VARCHAR} | ||
45 | - ) | 30 | + insert into scheduling_delete (id, delete_time, delete_type, |
31 | + description) | ||
32 | + values (#{id,jdbcType=VARCHAR}, #{deleteTime,jdbcType=INTEGER}, #{deleteType,jdbcType=VARCHAR}, | ||
33 | + #{description,jdbcType=VARCHAR}) | ||
46 | </insert> | 34 | </insert> |
47 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> | 35 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> |
48 | <!--@mbg.generated--> | 36 | <!--@mbg.generated--> |
@@ -57,6 +45,9 @@ | @@ -57,6 +45,9 @@ | ||
57 | <if test="deleteType != null"> | 45 | <if test="deleteType != null"> |
58 | delete_type, | 46 | delete_type, |
59 | </if> | 47 | </if> |
48 | + <if test="description != null"> | ||
49 | + description, | ||
50 | + </if> | ||
60 | </trim> | 51 | </trim> |
61 | <trim prefix="values (" suffix=")" suffixOverrides=","> | 52 | <trim prefix="values (" suffix=")" suffixOverrides=","> |
62 | <if test="id != null"> | 53 | <if test="id != null"> |
@@ -68,6 +59,9 @@ | @@ -68,6 +59,9 @@ | ||
68 | <if test="deleteType != null"> | 59 | <if test="deleteType != null"> |
69 | #{deleteType,jdbcType=VARCHAR}, | 60 | #{deleteType,jdbcType=VARCHAR}, |
70 | </if> | 61 | </if> |
62 | + <if test="description != null"> | ||
63 | + #{description,jdbcType=VARCHAR}, | ||
64 | + </if> | ||
71 | </trim> | 65 | </trim> |
72 | </insert> | 66 | </insert> |
73 | <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> | 67 | <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.SchedulingDelete"> |
@@ -80,6 +74,9 @@ | @@ -80,6 +74,9 @@ | ||
80 | <if test="deleteType != null"> | 74 | <if test="deleteType != null"> |
81 | delete_type = #{deleteType,jdbcType=VARCHAR}, | 75 | delete_type = #{deleteType,jdbcType=VARCHAR}, |
82 | </if> | 76 | </if> |
77 | + <if test="description != null"> | ||
78 | + description = #{description,jdbcType=VARCHAR}, | ||
79 | + </if> | ||
83 | </set> | 80 | </set> |
84 | where id = #{id,jdbcType=VARCHAR} | 81 | where id = #{id,jdbcType=VARCHAR} |
85 | </update> | 82 | </update> |
@@ -87,7 +84,21 @@ | @@ -87,7 +84,21 @@ | ||
87 | <!--@mbg.generated--> | 84 | <!--@mbg.generated--> |
88 | update scheduling_delete | 85 | update scheduling_delete |
89 | set delete_time = #{deleteTime,jdbcType=INTEGER}, | 86 | set delete_time = #{deleteTime,jdbcType=INTEGER}, |
90 | - delete_type = #{deleteType,jdbcType=VARCHAR} | 87 | + delete_type = #{deleteType,jdbcType=VARCHAR}, |
88 | + description = #{description,jdbcType=VARCHAR} | ||
91 | where id = #{id,jdbcType=VARCHAR} | 89 | where id = #{id,jdbcType=VARCHAR} |
92 | </update> | 90 | </update> |
91 | + | ||
92 | + <select id="selectByType" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
93 | + select | ||
94 | + <include refid="Base_Column_List" /> | ||
95 | + from scheduling_delete | ||
96 | + <where> | ||
97 | + <!-- 删除类型 --> | ||
98 | + <if test="deleteType != null and deleteType !=''"> | ||
99 | + delete_type = #{deleteType,jdbcType=VARCHAR} | ||
100 | + </if> | ||
101 | + </where> | ||
102 | + limit 1 | ||
103 | + </select> | ||
93 | </mapper> | 104 | </mapper> |
@@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
18 | <result column="routing_key_id" jdbcType="VARCHAR" property="routingKeyId" /> | 18 | <result column="routing_key_id" jdbcType="VARCHAR" property="routingKeyId" /> |
19 | <result column="routing_key_name" jdbcType="VARCHAR" property="routingKeyName" /> | 19 | <result column="routing_key_name" jdbcType="VARCHAR" property="routingKeyName" /> |
20 | <result column="subscriber" jdbcType="VARCHAR" property="subscriber" /> | 20 | <result column="subscriber" jdbcType="VARCHAR" property="subscriber" /> |
21 | + <result column="description" jdbcType="VARCHAR" property="description" /> | ||
21 | <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" /> | 22 | <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" /> |
22 | <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" /> | 23 | <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" /> |
23 | </resultMap> | 24 | </resultMap> |
@@ -25,7 +26,7 @@ | @@ -25,7 +26,7 @@ | ||
25 | <!--@mbg.generated--> | 26 | <!--@mbg.generated--> |
26 | id, user_id, username, server_id, `server_name`, virtual_host_id, virtual_host_name, | 27 | id, user_id, username, server_id, `server_name`, virtual_host_id, virtual_host_name, |
27 | exchange_id, exchange_name, queue_id, queue_name, routing_key_id, routing_key_name, | 28 | exchange_id, exchange_name, queue_id, queue_name, routing_key_id, routing_key_name, |
28 | - subscriber, gmt_create, gmt_modified | 29 | + subscriber, description, gmt_create, gmt_modified |
29 | </sql> | 30 | </sql> |
30 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | 31 | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
31 | <!--@mbg.generated--> | 32 | <!--@mbg.generated--> |
@@ -45,14 +46,14 @@ | @@ -45,14 +46,14 @@ | ||
45 | server_id, `server_name`, virtual_host_id, | 46 | server_id, `server_name`, virtual_host_id, |
46 | virtual_host_name, exchange_id, exchange_name, | 47 | virtual_host_name, exchange_id, exchange_name, |
47 | queue_id, queue_name, routing_key_id, | 48 | queue_id, queue_name, routing_key_id, |
48 | - routing_key_name, subscriber, gmt_create, | ||
49 | - gmt_modified) | 49 | + routing_key_name, subscriber, description, |
50 | + gmt_create, gmt_modified) | ||
50 | values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, | 51 | values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, |
51 | #{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR}, | 52 | #{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR}, |
52 | #{virtualHostName,jdbcType=VARCHAR}, #{exchangeId,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR}, | 53 | #{virtualHostName,jdbcType=VARCHAR}, #{exchangeId,jdbcType=VARCHAR}, #{exchangeName,jdbcType=VARCHAR}, |
53 | #{queueId,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{routingKeyId,jdbcType=VARCHAR}, | 54 | #{queueId,jdbcType=VARCHAR}, #{queueName,jdbcType=VARCHAR}, #{routingKeyId,jdbcType=VARCHAR}, |
54 | - #{routingKeyName,jdbcType=VARCHAR}, #{subscriber,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, | ||
55 | - #{gmtModified,jdbcType=TIMESTAMP}) | 55 | + #{routingKeyName,jdbcType=VARCHAR}, #{subscriber,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, |
56 | + #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}) | ||
56 | </insert> | 57 | </insert> |
57 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding"> | 58 | <insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.UserMessageBinding"> |
58 | <!--@mbg.generated--> | 59 | <!--@mbg.generated--> |
@@ -100,6 +101,9 @@ | @@ -100,6 +101,9 @@ | ||
100 | <if test="subscriber != null"> | 101 | <if test="subscriber != null"> |
101 | subscriber, | 102 | subscriber, |
102 | </if> | 103 | </if> |
104 | + <if test="description != null"> | ||
105 | + description, | ||
106 | + </if> | ||
103 | <if test="gmtCreate != null"> | 107 | <if test="gmtCreate != null"> |
104 | gmt_create, | 108 | gmt_create, |
105 | </if> | 109 | </if> |
@@ -150,6 +154,9 @@ | @@ -150,6 +154,9 @@ | ||
150 | <if test="subscriber != null"> | 154 | <if test="subscriber != null"> |
151 | #{subscriber,jdbcType=VARCHAR}, | 155 | #{subscriber,jdbcType=VARCHAR}, |
152 | </if> | 156 | </if> |
157 | + <if test="description != null"> | ||
158 | + #{description,jdbcType=VARCHAR}, | ||
159 | + </if> | ||
153 | <if test="gmtCreate != null"> | 160 | <if test="gmtCreate != null"> |
154 | #{gmtCreate,jdbcType=TIMESTAMP}, | 161 | #{gmtCreate,jdbcType=TIMESTAMP}, |
155 | </if> | 162 | </if> |
@@ -201,6 +208,9 @@ | @@ -201,6 +208,9 @@ | ||
201 | <if test="subscriber != null"> | 208 | <if test="subscriber != null"> |
202 | subscriber = #{subscriber,jdbcType=VARCHAR}, | 209 | subscriber = #{subscriber,jdbcType=VARCHAR}, |
203 | </if> | 210 | </if> |
211 | + <if test="description != null"> | ||
212 | + description = #{description,jdbcType=VARCHAR}, | ||
213 | + </if> | ||
204 | <if test="gmtCreate != null"> | 214 | <if test="gmtCreate != null"> |
205 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, | 215 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, |
206 | </if> | 216 | </if> |
@@ -226,6 +236,7 @@ | @@ -226,6 +236,7 @@ | ||
226 | routing_key_id = #{routingKeyId,jdbcType=VARCHAR}, | 236 | routing_key_id = #{routingKeyId,jdbcType=VARCHAR}, |
227 | routing_key_name = #{routingKeyName,jdbcType=VARCHAR}, | 237 | routing_key_name = #{routingKeyName,jdbcType=VARCHAR}, |
228 | subscriber = #{subscriber,jdbcType=VARCHAR}, | 238 | subscriber = #{subscriber,jdbcType=VARCHAR}, |
239 | + description = #{description,jdbcType=VARCHAR}, | ||
229 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, | 240 | gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, |
230 | gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} | 241 | gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} |
231 | where id = #{id,jdbcType=VARCHAR} | 242 | where id = #{id,jdbcType=VARCHAR} |
-
请 注册 或 登录 后发表评论