|
@@ -1316,6 +1316,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
imPluginContext.getPluginService().importPrivateMessage(privateImportMessage);
|
|
|
//为已导入数据更改标识
|
|
|
updateStatus(i,1);
|
|
|
+ log.info("导入私聊消息成功:{}", i);
|
|
|
} catch (Exception e) {
|
|
|
updateStatus(i,2);
|
|
|
log.error("导入私聊IM消息失败 msg:{},entity:{}", list, i, e);
|
|
@@ -1392,11 +1393,11 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
imPluginContext.getPluginService().importGroupMessage(groupImportMessage);
|
|
|
//为已导入数据更改标识
|
|
|
updateStatus(i,1);
|
|
|
+ log.info("导入消息成功:{}", i);
|
|
|
} catch (Exception e) {
|
|
|
updateStatus(i,2);
|
|
|
log.error("导入群组IM消息失败 msg:{},entity:{}", list, i, e);
|
|
|
}
|
|
|
- log.info("导入消息成功:{}", i);
|
|
|
}
|
|
|
}catch (Exception e) {
|
|
|
log.error("导入消息失败:", e);
|
|
@@ -1432,14 +1433,22 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
tencent.setGroupId(historyMessage.getGroupId());
|
|
|
bodyList = getGroupMessage(historyMessage,jsonObject);
|
|
|
} else {
|
|
|
+
|
|
|
+ historyMessage.setSyncFlag(1);
|
|
|
+ historyMessageService.updateSyncFlag(historyMessage.getMsgUID(),1);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (CollectionUtils.isEmpty(bodyList)) {
|
|
|
+
|
|
|
+ historyMessage.setSyncFlag(1);
|
|
|
+ historyMessageService.updateSyncFlag(historyMessage.getMsgUID(),1);
|
|
|
continue;
|
|
|
}
|
|
|
bodyList = bodyList.stream().filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
if (CollectionUtils.isEmpty(bodyList)) {
|
|
|
+ historyMessage.setSyncFlag(1);
|
|
|
+ historyMessageService.updateSyncFlag(historyMessage.getMsgUID(),1);
|
|
|
continue;
|
|
|
}
|
|
|
// 发送人
|