|
|
@@ -715,7 +715,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
QwGroupChat groupChat = groupChatMap.get(logVo.getChatId());
|
|
|
ruleTimeVO.setSendType(6);
|
|
|
ruleTimeVO.setType(2);
|
|
|
- QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, groupChat.getChatId(), groupChat.getName(), null, isOfficial, null);
|
|
|
+ QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, groupChat.getChatId(), groupChat.getName(), null, isOfficial, null,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);
|
|
|
@@ -744,7 +744,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
String externalUserName = contactId.getExternalUserName();
|
|
|
Long fsUserId = contactId.getFsUserId();
|
|
|
Integer grade = contactId.getGrade();
|
|
|
- QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, contactId.getExternalContactId(), externalUserName, fsUserId, isOfficial, contactId.getExternalId());
|
|
|
+ QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, contactId.getExternalContactId(), externalUserName, fsUserId, isOfficial, contactId.getExternalId(),contactId.getIsDaysNotStudy());
|
|
|
handleLogBasedOnType(sopLogs, content, logVo, sendTime, courseId, videoId,
|
|
|
type, qwUserId, companyUserId, companyId, externalId, welcomeText, qwUserName, fsUserId, false, miniAppId,
|
|
|
null,config, miniMap, grade, sendMsgType,companies);
|
|
|
@@ -790,7 +790,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
private QwSopLogs createBaseLog(String formattedSendTime, SopUserLogsVo logVo,
|
|
|
QwSopRuleTimeVO ruleTimeVO, String externalContactId,
|
|
|
String externalUserName, Long fsUserId,Integer isOfficial,
|
|
|
- Long externalId) {
|
|
|
+ Long externalId,Integer isDaysNotStudy) {
|
|
|
QwSopLogs sopLogs = new QwSopLogs();
|
|
|
sopLogs.setSendTime(formattedSendTime);
|
|
|
sopLogs.setQwUserid(logVo.getQwUserId());
|
|
|
@@ -798,6 +798,15 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
sopLogs.setLogType(ruleTimeVO.getType());
|
|
|
sopLogs.setTakeRecords(0);
|
|
|
|
|
|
+ if (isOfficial != 1 && Integer.valueOf(1).equals(isDaysNotStudy)) {
|
|
|
+ sopLogs.setSendStatus(5L);
|
|
|
+ sopLogs.setRemark("E级客户不发送");
|
|
|
+ }else {
|
|
|
+ sopLogs.setSendStatus(3L);
|
|
|
+ }
|
|
|
+
|
|
|
+ sopLogs.setReceivingStatus(0L);
|
|
|
+
|
|
|
if (isOfficial == 1) {
|
|
|
|
|
|
if (logVo.getIsSampSend()== 1) {
|