|
@@ -40,10 +40,7 @@ import com.fs.qw.vo.GroupUserExternalVo;
|
|
|
import com.fs.qw.vo.QwSopCourseFinishTempSetting;
|
|
|
import com.fs.qw.vo.QwSopRuleTimeVO;
|
|
|
import com.fs.qw.vo.QwTagGroupListVO;
|
|
|
-import com.fs.sop.domain.QwSop;
|
|
|
-import com.fs.sop.domain.QwSopLogs;
|
|
|
-import com.fs.sop.domain.SopUserLogs;
|
|
|
-import com.fs.sop.domain.SopUserLogsInfo;
|
|
|
+import com.fs.sop.domain.*;
|
|
|
import com.fs.sop.mapper.QwSopLogsMapper;
|
|
|
import com.fs.sop.mapper.QwSopMapper;
|
|
|
import com.fs.sop.mapper.SopUserLogsInfoMapper;
|
|
@@ -53,6 +50,7 @@ import com.fs.sop.params.BatchSopUserLogsInfoParamU;
|
|
|
import com.fs.sop.params.SendUserLogsInfoMsgParam;
|
|
|
import com.fs.sop.params.SopUserLogsParamByDate;
|
|
|
import com.fs.sop.service.IQwSopService;
|
|
|
+import com.fs.sop.service.IQwSopTempVoiceService;
|
|
|
import com.fs.sop.service.ISopUserLogsInfoService;
|
|
|
import com.fs.sop.service.ISopUserLogsService;
|
|
|
import com.fs.sop.vo.ExtCourseSopWatchLogVO;
|
|
@@ -167,6 +165,10 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
@Autowired
|
|
|
private CompanyMapper companyMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IQwSopTempVoiceService sopTempVoiceService;
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public void save(SopUserLogsInfo sopUserLogsInfo) {
|
|
@@ -617,6 +619,11 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
break;
|
|
|
+
|
|
|
+ //语音
|
|
|
+ case "7":
|
|
|
+ createVoiceUrl(st, companyUserId, qwSop);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
setting.setSetting(list);
|
|
@@ -716,6 +723,12 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
break;
|
|
|
+ //语音
|
|
|
+ case "7":
|
|
|
+ if (qwUser.getCompanyUserId() != null) {
|
|
|
+ createVoiceUrl(st, String.valueOf(qwUser.getCompanyUserId()), qwSop);
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
setting.setSetting(list);
|
|
@@ -889,6 +902,10 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
|
|
|
+ break;
|
|
|
+ //语音
|
|
|
+ case "7":
|
|
|
+ createVoiceUrl(st, companyUserId, qwSop);
|
|
|
break;
|
|
|
//app
|
|
|
case "9":
|
|
@@ -948,6 +965,21 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ private void createVoiceUrl(QwSopCourseFinishTempSetting.Setting st, String companyUserId, QwSop qwSop) {
|
|
|
+ QwSopTempVoice qwSopTempVoice = sopTempVoiceService.selectQwSopTempVoiceByCompanyUserIdAndVoiceTxt(Long.valueOf(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) {
|
|
|
+ qwSopTempVoice = new QwSopTempVoice();
|
|
|
+ qwSopTempVoice.setCompanyUserId(Long.valueOf(companyUserId));
|
|
|
+ qwSopTempVoice.setVoiceTxt(st.getValue());
|
|
|
+ qwSopTempVoice.setRecordType(0);
|
|
|
+ sopTempVoiceService.insertQwSopTempVoice(qwSopTempVoice);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public R sendUserLogsInfoMsgType(SendUserLogsInfoMsgParam param) {
|
|
|
//营期一键群发
|
|
@@ -1304,6 +1336,10 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
break;
|
|
|
+ case "7":
|
|
|
+ QwSop qwSop = qwSopMapper.selectQwSopById(param.getSopId());
|
|
|
+ createVoiceUrl(st, companyUserId, qwSop);
|
|
|
+ break;
|
|
|
|
|
|
//自定义小程序
|
|
|
case "10":
|