作者 王勇

简单完善vue界面发送信息

@@ -37,7 +37,6 @@ public class MessageNote implements Serializable { @@ -37,7 +37,6 @@ public class MessageNote implements Serializable {
37 /** 37 /**
38 * 用户的ID 38 * 用户的ID
39 */ 39 */
40 - @Field(type = FieldType.Text)  
41 private String userId; 40 private String userId;
42 41
43 /** 42 /**
@@ -240,9 +240,6 @@ public class MessageNoteServiceImpl implements MessageNoteService { @@ -240,9 +240,6 @@ public class MessageNoteServiceImpl implements MessageNoteService {
240 public int validateNoteAndFill(MessageNote messageNote) throws Exception 240 public int validateNoteAndFill(MessageNote messageNote) throws Exception
241 { 241 {
242 if (validateNote(messageNote)) { 242 if (validateNote(messageNote)) {
243 - // 填充,用户名称  
244 - UserInfo userInfo = userInfoService.selectByPrimaryKey(messageNote.getUserId());  
245 - messageNote.setUsername(userInfo.getUsername());  
246 // 填充,服务器名称 243 // 填充,服务器名称
247 BusServer busServer = busServerService.selectByPrimaryKey(messageNote.getServerId()); 244 BusServer busServer = busServerService.selectByPrimaryKey(messageNote.getServerId());
248 messageNote.setServerName(busServer.getServerName()); 245 messageNote.setServerName(busServer.getServerName());
@@ -251,7 +248,6 @@ public class MessageNoteServiceImpl implements MessageNoteService { @@ -251,7 +248,6 @@ public class MessageNoteServiceImpl implements MessageNoteService {
251 // 发送到MQ服务器 248 // 发送到MQ服务器
252 XmlData xmlData = XmlData.builder() 249 XmlData xmlData = XmlData.builder()
253 .sender(note.getUsername()) 250 .sender(note.getUsername())
254 - .password(userInfo.getPassword())  
255 .sendContent(note.getAlias_sendContent()) 251 .sendContent(note.getAlias_sendContent())
256 .sendDateTime(note.getSendTime()) 252 .sendDateTime(note.getSendTime())
257 .exchangeName(note.getExchangeName()) 253 .exchangeName(note.getExchangeName())