|
@@ -40,6 +40,7 @@ import com.fs.sop.vo.QwCreateLinkByAppVO;
|
|
|
import com.fs.sop.vo.SopUserLogsVo;
|
|
import com.fs.sop.vo.SopUserLogsVo;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import com.fs.voice.utils.StringUtil;
|
|
import com.fs.voice.utils.StringUtil;
|
|
|
|
|
+import io.swagger.models.auth.In;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -2060,7 +2061,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
//小程序单独
|
|
//小程序单独
|
|
|
case "4":
|
|
case "4":
|
|
|
addWatchLogIfNeeded(sopLogs.getSopId(), st.getVideoId().intValue(), st.getCourseId().intValue(), sopLogs.getFsUserId(), String.valueOf(qwUser.getId()),qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(),
|
|
addWatchLogIfNeeded(sopLogs.getSopId(), st.getVideoId().intValue(), st.getCourseId().intValue(), sopLogs.getFsUserId(), String.valueOf(qwUser.getId()),qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(),
|
|
|
- sopLogs.getExternalId(), newTimeString.substring(0, 10), dataTime);
|
|
|
|
|
|
|
+ sopLogs.getExternalId(), newTimeString.substring(0, 10), dataTime, 2);
|
|
|
|
|
|
|
|
String linkByMiniApp = createLinkByMiniApp(st, sopLogs.getCorpId(), dataTime, finishTemp.getCourseId().intValue(), Integer.valueOf(st.getVideoId().toString()),
|
|
String linkByMiniApp = createLinkByMiniApp(st, sopLogs.getCorpId(), dataTime, finishTemp.getCourseId().intValue(), Integer.valueOf(st.getVideoId().toString()),
|
|
|
String.valueOf(qwUser.getId()), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), sopLogs.getExternalId(), config);
|
|
String.valueOf(qwUser.getId()), qwUser.getCompanyUserId().toString(), qwUser.getCompanyId().toString(), sopLogs.getExternalId(), config);
|
|
@@ -2237,7 +2238,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
*/
|
|
*/
|
|
|
private Long addWatchLogIfNeeded(String sopId, Integer videoId, Integer courseId,
|
|
private Long addWatchLogIfNeeded(String sopId, Integer videoId, Integer courseId,
|
|
|
Long fsUserId, String qwUserId, String companyUserId,
|
|
Long fsUserId, String qwUserId, String companyUserId,
|
|
|
- String companyId, Long externalId, String startTime, Date createTime) {
|
|
|
|
|
|
|
+ String companyId, Long externalId, String startTime, Date createTime, Integer watchType) {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
FsCourseWatchLog watchLog = new FsCourseWatchLog();
|
|
FsCourseWatchLog watchLog = new FsCourseWatchLog();
|
|
@@ -2255,6 +2256,7 @@ public class SopLogsTaskServiceImpl implements SopLogsTaskService {
|
|
|
watchLog.setLogType(3);
|
|
watchLog.setLogType(3);
|
|
|
watchLog.setUserId(fsUserId);
|
|
watchLog.setUserId(fsUserId);
|
|
|
watchLog.setCampPeriodTime(convertStringToDate(startTime, "yyyy-MM-dd"));
|
|
watchLog.setCampPeriodTime(convertStringToDate(startTime, "yyyy-MM-dd"));
|
|
|
|
|
+ watchLog.setWatchType(watchType);
|
|
|
|
|
|
|
|
//存看课记录
|
|
//存看课记录
|
|
|
int i = fsCourseWatchLogMapper.insertOrUpdateFsCourseWatchLog(watchLog);
|
|
int i = fsCourseWatchLogMapper.insertOrUpdateFsCourseWatchLog(watchLog);
|