|
|
@@ -714,23 +714,29 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
QwGroupChat groupChat = groupChatMap.get(logVo.getChatId());
|
|
|
ruleTimeVO.setSendType(6);
|
|
|
ruleTimeVO.setType(2);
|
|
|
- if (content.getIndex() == 0) {
|
|
|
+ if (groupChat.getChatUserList() != null && !groupChat.getChatUserList().isEmpty()) {
|
|
|
QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, groupChat.getChatId(), groupChat.getName(), null, isOfficial, null);
|
|
|
handleLogBasedOnType(sopLogs, content, logVo, sendTime, courseId, videoId,
|
|
|
type, qwUserId, companyUserId, companyId, groupChat.getChatId(), welcomeText, qwUserName,
|
|
|
null, true, miniAppId, groupChat,config, miniMap, null, sendMsgType,companies);
|
|
|
- } else {
|
|
|
- if(groupChat.getChatUserList() != null && !groupChat.getChatUserList().isEmpty()){
|
|
|
- groupChat.getChatUserList().forEach(user -> {
|
|
|
- ruleTimeVO.setSendType(2);
|
|
|
- ruleTimeVO.setRemark("客户群催课");
|
|
|
- QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, user.getUserId(), user.getName(), null, isOfficial, null);
|
|
|
- handleLogBasedOnType(sopLogs, content, logVo, sendTime, courseId, videoId,
|
|
|
- type, qwUserId, companyUserId, companyId, user.getId().toString(), welcomeText, qwUserName,
|
|
|
- null, false, miniAppId, groupChat,config, miniMap, null, sendMsgType,companies);
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
+// if (content.getIndex() == 0) {
|
|
|
+// QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, groupChat.getChatId(), groupChat.getName(), null, isOfficial, null);
|
|
|
+// handleLogBasedOnType(sopLogs, content, logVo, sendTime, courseId, videoId,
|
|
|
+// type, qwUserId, companyUserId, companyId, groupChat.getChatId(), welcomeText, qwUserName,
|
|
|
+// null, true, miniAppId, groupChat,config, miniMap, null, sendMsgType,companies);
|
|
|
+// } else {
|
|
|
+// if(groupChat.getChatUserList() != null && !groupChat.getChatUserList().isEmpty()){
|
|
|
+// groupChat.getChatUserList().forEach(user -> {
|
|
|
+// ruleTimeVO.setSendType(2);
|
|
|
+// ruleTimeVO.setRemark("客户群催课");
|
|
|
+// QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, user.getUserId(), user.getName(), null, isOfficial, null);
|
|
|
+// handleLogBasedOnType(sopLogs, content, logVo, sendTime, courseId, videoId,
|
|
|
+// type, qwUserId, companyUserId, companyId, user.getId().toString(), welcomeText, qwUserName,
|
|
|
+// null, false, miniAppId, groupChat,config, miniMap, null, sendMsgType,companies);
|
|
|
+// });
|
|
|
+// }
|
|
|
+// }
|
|
|
} else {
|
|
|
// 处理每个 externalContactId
|
|
|
sopUserLogsInfos.forEach(contactId -> {
|