|
@@ -919,16 +919,16 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
FsCourseWatchLog updateLog = new FsCourseWatchLog();
|
|
|
updateLog.setUpdateTime(new Date());
|
|
|
courseWatchLogMapper.updateFsCourseWatchLog(updateLog);
|
|
|
+ } else {
|
|
|
+ //如果是会员,则需要添加看课记录
|
|
|
+ FsCourseWatchLog fsCourseWatchLog = new FsCourseWatchLog();
|
|
|
+ BeanUtils.copyProperties(param, fsCourseWatchLog);
|
|
|
+ fsCourseWatchLog.setSendType(1);
|
|
|
+ fsCourseWatchLog.setDuration(0L);
|
|
|
+ fsCourseWatchLog.setCreateTime(new Date());
|
|
|
+ fsCourseWatchLog.setLogType(1);
|
|
|
+ courseWatchLogMapper.insertFsCourseWatchLog(fsCourseWatchLog);
|
|
|
}
|
|
|
-
|
|
|
- //如果是会员,则需要添加看课记录
|
|
|
- FsCourseWatchLog fsCourseWatchLog = new FsCourseWatchLog();
|
|
|
- BeanUtils.copyProperties(param, fsCourseWatchLog);
|
|
|
- fsCourseWatchLog.setSendType(1);
|
|
|
- fsCourseWatchLog.setDuration(0L);
|
|
|
- fsCourseWatchLog.setCreateTime(new Date());
|
|
|
- fsCourseWatchLog.setLogType(1);
|
|
|
- courseWatchLogMapper.insertFsCourseWatchLog(fsCourseWatchLog);
|
|
|
} else {
|
|
|
return ResponseResult.ok(Boolean.FALSE);
|
|
|
}
|