|
@@ -76,9 +76,11 @@ import com.zhongzheng.modules.user.bo.UserStudyRecordQueryBo;
|
|
|
import com.zhongzheng.modules.user.domain.User;
|
|
|
import com.zhongzheng.modules.user.domain.UserExamGoods;
|
|
|
import com.zhongzheng.modules.user.domain.UserStudyRecordPhoto;
|
|
|
+import com.zhongzheng.modules.user.domain.UserStudyVideo;
|
|
|
import com.zhongzheng.modules.user.service.IUserExamGoodsService;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.service.IUserStudyRecordPhotoService;
|
|
|
+import com.zhongzheng.modules.user.service.IUserStudyVideoService;
|
|
|
import com.zhongzheng.modules.user.vo.UserVo;
|
|
|
import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -214,6 +216,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
@Autowired
|
|
|
private IUserProfileService iUserProfileService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IUserStudyVideoService iUserStudyVideoService;
|
|
|
+
|
|
|
@Value("${oldStudySys.syncPath}")
|
|
|
private String SYNC_PATH;
|
|
|
|
|
@@ -914,7 +919,22 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
SyncUserStudyRec syncUserStudyRec = new SyncUserStudyRec();
|
|
|
syncUserStudyRec.setVideoId(classPeriodSectionVo.getId());
|
|
|
syncUserStudyRec.setVideoKey(classPeriodSectionVo.getRecordingUrl());
|
|
|
-
|
|
|
+ //获取视频录像
|
|
|
+ UserStudyVideo studyVideo = iUserStudyVideoService.getOne(new LambdaQueryWrapper<UserStudyVideo>()
|
|
|
+ .eq(UserStudyVideo::getOrderGoodsId,gradeUser.getOrderGoodsId())
|
|
|
+ .eq(UserStudyVideo::getUserId,classPeriodSectionVo.getUserId())
|
|
|
+ .eq(UserStudyVideo::getCourseId,classPeriodSectionVo.getCourseId())
|
|
|
+ .eq(UserStudyVideo::getChapterId,courseModuleChapterVo.getId())
|
|
|
+ .eq(UserStudyVideo::getModuleId,courseMenuVo.getMenuId())
|
|
|
+ .eq(UserStudyVideo::getSectionId,classPeriodSectionVo.getId())
|
|
|
+ .eq(UserStudyVideo::getGoodsId,bo.getGoodsId())
|
|
|
+ .eq(UserStudyVideo::getCurrentStatus,1)
|
|
|
+ .eq(UserStudyVideo::getStatus,1));
|
|
|
+ if (ObjectUtils.isNotNull(studyVideo)){
|
|
|
+ syncUserStudyRec.setVideoUrl(ossHost+"/"+studyVideo.getVideoUrl());
|
|
|
+ syncUserStudyRec.setVideoTime(DateUtils.timestampToDateFormat(studyVideo.getCreateTime(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
+ syncUserStudyRec.setVideoCurrentTime(studyVideo.getVideoCurrentTime());
|
|
|
+ }
|
|
|
UserPeriodQueryBo userPeriodQueryBo2 = new UserPeriodQueryBo();
|
|
|
userPeriodQueryBo2.setSectionId(classPeriodSectionVo.getId());
|
|
|
userPeriodQueryBo2.setCourseId(courseVo.getCourseId());
|
|
@@ -1043,6 +1063,22 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
syncUserStudyRec.setVideoId(classPeriodSectionVo.getId());
|
|
|
syncUserStudyRec.setVideoKey(classPeriodSectionVo.getRecordingUrl());
|
|
|
|
|
|
+ //获取视频录像
|
|
|
+ UserStudyVideo studyVideo = iUserStudyVideoService.getOne(new LambdaQueryWrapper<UserStudyVideo>()
|
|
|
+ .eq(UserStudyVideo::getOrderGoodsId,gradeUser.getOrderGoodsId())
|
|
|
+ .eq(UserStudyVideo::getUserId,classPeriodSectionVo.getUserId())
|
|
|
+ .eq(UserStudyVideo::getCourseId,classPeriodSectionVo.getCourseId())
|
|
|
+ .eq(UserStudyVideo::getChapterId,courseModuleChapterVo.getId())
|
|
|
+ .eq(UserStudyVideo::getModuleId,courseMenuVo.getMenuId())
|
|
|
+ .eq(UserStudyVideo::getSectionId,classPeriodSectionVo.getId())
|
|
|
+ .eq(UserStudyVideo::getGoodsId,bo.getGoodsId())
|
|
|
+ .eq(UserStudyVideo::getCurrentStatus,1)
|
|
|
+ .eq(UserStudyVideo::getStatus,1));
|
|
|
+ if (ObjectUtils.isNotNull(studyVideo)){
|
|
|
+ syncUserStudyRec.setVideoUrl(ossHost+"/"+studyVideo.getVideoUrl());
|
|
|
+ syncUserStudyRec.setVideoTime(DateUtils.timestampToDateFormat(studyVideo.getCreateTime(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
+ syncUserStudyRec.setVideoCurrentTime(studyVideo.getVideoCurrentTime());
|
|
|
+ }
|
|
|
UserPeriodQueryBo userPeriodQueryBo2 = new UserPeriodQueryBo();
|
|
|
userPeriodQueryBo2.setSectionId(classPeriodSectionVo.getId());
|
|
|
userPeriodQueryBo2.setCourseId(courseVo.getCourseId());
|