|
|
@@ -713,7 +713,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
ruleTimeVO.setSendType(6);
|
|
|
ruleTimeVO.setType(2);
|
|
|
if (content.getIndex() == 0) {
|
|
|
- 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);
|
|
|
@@ -722,7 +722,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
groupChat.getChatUserList().forEach(user -> {
|
|
|
ruleTimeVO.setSendType(2);
|
|
|
ruleTimeVO.setRemark("客户群催课");
|
|
|
- QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, user.getUserId(), user.getName(), null, isOfficial, null);
|
|
|
+ QwSopLogs sopLogs = createBaseLog(formattedSendTime, logVo, ruleTimeVO, user.getUserId(), user.getName(), null, isOfficial, null,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);
|
|
|
@@ -737,7 +737,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);
|
|
|
@@ -783,7 +783,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());
|
|
|
@@ -791,6 +791,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) {
|
|
|
@@ -820,9 +829,6 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- sopLogs.setSendStatus(3L);
|
|
|
- sopLogs.setReceivingStatus(0L);
|
|
|
-
|
|
|
String[] userKey = logVo.getUserId().split("\\|");
|
|
|
log.info("sopLogVo:{}", JSON.toJSONString(logVo));
|
|
|
log.info("sop_logs -》 userId:{}", logVo.getUserId());
|