|
@@ -37,7 +37,7 @@ public class ConversationContentTask {
|
|
|
Integer count = 0;
|
|
Integer count = 0;
|
|
|
//循环获取数据,每次100条,count不足100条时最后一次循序
|
|
//循环获取数据,每次100条,count不足100条时最后一次循序
|
|
|
// while (count < pageLimit) {
|
|
// while (count < pageLimit) {
|
|
|
- pageEnd=3;
|
|
|
|
|
|
|
+ pageSeq=0;pageEnd=200;
|
|
|
Map<String, Object> map = conversationContentService.getChatData(pageSeq, pageEnd);
|
|
Map<String, Object> map = conversationContentService.getChatData(pageSeq, pageEnd);
|
|
|
List<InputChatMsg> list = (List<InputChatMsg>) map.get("list");
|
|
List<InputChatMsg> list = (List<InputChatMsg>) map.get("list");
|
|
|
pushChatMsg(list);
|
|
pushChatMsg(list);
|
|
@@ -54,7 +54,10 @@ public class ConversationContentTask {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void pushChatMsg(List<InputChatMsg> list) {
|
|
private void pushChatMsg(List<InputChatMsg> list) {
|
|
|
|
|
+ int index=0;
|
|
|
for (InputChatMsg chatMsg : list) {
|
|
for (InputChatMsg chatMsg : list) {
|
|
|
|
|
+ index++;
|
|
|
|
|
+ System.out.println("第"+index+"条数据");
|
|
|
System.out.println(chatMsg);
|
|
System.out.println(chatMsg);
|
|
|
String from = chatMsg.getFrom();
|
|
String from = chatMsg.getFrom();
|
|
|
//获取发送这名称
|
|
//获取发送这名称
|
|
@@ -75,7 +78,7 @@ public class ConversationContentTask {
|
|
|
}else {
|
|
}else {
|
|
|
conversationContentService.pushGetRoomName(chatMsg.getRoomid());
|
|
conversationContentService.pushGetRoomName(chatMsg.getRoomid());
|
|
|
}
|
|
}
|
|
|
- if (StringUtils.isEmpty(chatName)){
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(chatName)){
|
|
|
ChatMsg chatMsg1 = chatMsgMapper.selectByMsgId(chatMsg.getMsgid());
|
|
ChatMsg chatMsg1 = chatMsgMapper.selectByMsgId(chatMsg.getMsgid());
|
|
|
if (chatMsg1 == null){
|
|
if (chatMsg1 == null){
|
|
|
ChatMsg in= new ChatMsg();
|
|
ChatMsg in= new ChatMsg();
|