|
@@ -55,12 +55,14 @@ public class ConversationContentTask {
|
|
|
|
|
|
|
|
private void pushChatMsg(List<InputChatMsg> list) {
|
|
private void pushChatMsg(List<InputChatMsg> list) {
|
|
|
int index=0;
|
|
int index=0;
|
|
|
|
|
+ //遍历数据 迭代获取数据写入数据库
|
|
|
for (InputChatMsg chatMsg : list) {
|
|
for (InputChatMsg chatMsg : list) {
|
|
|
index++;
|
|
index++;
|
|
|
System.out.println("第"+index+"条数据");
|
|
System.out.println("第"+index+"条数据");
|
|
|
System.out.println(chatMsg);
|
|
System.out.println(chatMsg);
|
|
|
String from = chatMsg.getFrom();
|
|
String from = chatMsg.getFrom();
|
|
|
//获取发送这名称
|
|
//获取发送这名称
|
|
|
|
|
+ System.out.println("====>"+chatMsg);
|
|
|
String chatName = conversationContentService.pushGetChatName(from);
|
|
String chatName = conversationContentService.pushGetChatName(from);
|
|
|
String tolist = chatMsg.getTolist();
|
|
String tolist = chatMsg.getTolist();
|
|
|
//用逗号分割
|
|
//用逗号分割
|