|
@@ -153,6 +153,9 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
IFsCourseFinishTempService fsCourseFinishTempService;
|
|
IFsCourseFinishTempService fsCourseFinishTempService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private SopOrderLogMapper sopOrderLogMapper;
|
|
|
|
|
+
|
|
|
// Blocking queues with bounded capacity to implement backpressure
|
|
// Blocking queues with bounded capacity to implement backpressure
|
|
|
private final BlockingQueue<QwSopLogs> qwSopLogsQueue = new LinkedBlockingQueue<>(20000);
|
|
private final BlockingQueue<QwSopLogs> qwSopLogsQueue = new LinkedBlockingQueue<>(20000);
|
|
|
private final BlockingQueue<FsCourseWatchLog> watchLogsQueue = new LinkedBlockingQueue<>(20000);
|
|
private final BlockingQueue<FsCourseWatchLog> watchLogsQueue = new LinkedBlockingQueue<>(20000);
|
|
@@ -662,6 +665,8 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
content.setVideoId(e.getVideoId());
|
|
content.setVideoId(e.getVideoId());
|
|
|
content.setCourseType(e.getCourseType());
|
|
content.setCourseType(e.getCourseType());
|
|
|
content.setAiTouch(e.getAiTouch());
|
|
content.setAiTouch(e.getAiTouch());
|
|
|
|
|
+ content.setIsBuy(e.getIsBuy());
|
|
|
|
|
+ content.setOrderSendType(e.getOrderSendType());
|
|
|
return content;
|
|
return content;
|
|
|
}).sorted(Comparator.comparing(e -> LocalTime.parse(e.getTime() + ":00"))).peek(e -> e.setIndex(i.getAndIncrement())).collect(Collectors.toList());
|
|
}).sorted(Comparator.comparing(e -> LocalTime.parse(e.getTime() + ":00"))).peek(e -> e.setIndex(i.getAndIncrement())).collect(Collectors.toList());
|
|
|
}
|
|
}
|
|
@@ -713,6 +718,11 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
sopAddTag(logVo,content,sendTime);
|
|
sopAddTag(logVo,content,sendTime);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //发送销售医生任务
|
|
|
|
|
+ if (content.getType()==6){
|
|
|
|
|
+ addSopOrderLog(logVo,content,sendTime);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//当语音模板的qw_sop_temp_voice中无对应语音,就不生成qw_sop_logs记录
|
|
//当语音模板的qw_sop_temp_voice中无对应语音,就不生成qw_sop_logs记录
|
|
|
if (content.getType() == 7 && content.getSetting() != null && !content.getSetting().isEmpty()) {
|
|
if (content.getType() == 7 && content.getSetting() != null && !content.getSetting().isEmpty()) {
|
|
|
if (content.getSetting().get(0).getVoiceUrl() == null) {
|
|
if (content.getSetting().get(0).getVoiceUrl() == null) {
|
|
@@ -792,6 +802,15 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private void addSopOrderLog(SopUserLogsVo logVo, QwSopTempSetting.Content content, Date sendTime){
|
|
|
|
|
+ SopOrderLog sopOrderLog = new SopOrderLog();
|
|
|
|
|
+ sopOrderLog.setOrderSendType(content.getOrderSendType());
|
|
|
|
|
+ sopOrderLog.setSendTime(sendTime);
|
|
|
|
|
+ sopOrderLog.setIsBuy(content.getIsBuy());
|
|
|
|
|
+ sopOrderLog.setSopId(logVo.getSopId());
|
|
|
|
|
+ sopOrderLogMapper.insertSopOrderLog(sopOrderLog);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private QwSopLogs createBaseLog(String formattedSendTime, SopUserLogsVo logVo,
|
|
private QwSopLogs createBaseLog(String formattedSendTime, SopUserLogsVo logVo,
|
|
|
QwSopRuleTimeVO ruleTimeVO, String externalContactId,
|
|
QwSopRuleTimeVO ruleTimeVO, String externalContactId,
|
|
|
String externalUserName, Long fsUserId,Integer isOfficial,
|
|
String externalUserName, Long fsUserId,Integer isOfficial,
|