|
|
@@ -179,6 +179,10 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
@Autowired
|
|
|
private IFsUserCompanyBindService fsUserCompanyBindService;
|
|
|
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IQwSopTempVoiceService sopTempVoiceService;
|
|
|
+
|
|
|
@PostConstruct
|
|
|
public void init() {
|
|
|
loadCourseConfig();
|
|
|
@@ -2019,6 +2023,24 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
//完课后若是小程序发送另外一堂课
|
|
|
saveWacthLogOfCourseLink(settings,sopLogs,newTimeString,finishLog,finishTemp);
|
|
|
// 处理音频内容
|
|
|
+ for (QwSopCourseFinishTempSetting.Setting st : settings) {
|
|
|
+ if (st.getContentType().equals("7")) {
|
|
|
+ Long companyUserId = finishLog.getCompanyUserId();
|
|
|
+ QwSopTempVoice qwSopTempVoice = sopTempVoiceService.selectQwSopTempVoiceByCompanyUserIdAndVoiceTxt(companyUserId, st.getValue());
|
|
|
+ if (qwSopTempVoice != null && qwSopTempVoice.getVoiceUrl() != null && qwSopTempVoice.getRecordType() == 1) {
|
|
|
+ st.setVoiceUrl(qwSopTempVoice.getVoiceUrl());
|
|
|
+ st.setVoiceDuration(String.valueOf(qwSopTempVoice.getDuration()));
|
|
|
+ } else if (qwSopTempVoice == null) {
|
|
|
+ if(companyUserId != null && st.getValue() != null){
|
|
|
+ qwSopTempVoice = new QwSopTempVoice();
|
|
|
+ qwSopTempVoice.setCompanyUserId(companyUserId);
|
|
|
+ qwSopTempVoice.setVoiceTxt(st.getValue());
|
|
|
+ qwSopTempVoice.setRecordType(0);
|
|
|
+ sopTempVoiceService.insertQwSopTempVoice(qwSopTempVoice);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
// for (QwSopCourseFinishTempSetting.Setting st : settings) {
|
|
|
// if (st.getContentType().equals("7")) {
|
|
|
// try {
|