|
@@ -28,6 +28,7 @@ import com.zhongzheng.modules.base.vo.UserProfileVo;
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterQueryBo;
|
|
import com.zhongzheng.modules.course.bo.CourseModuleChapterQueryBo;
|
|
|
|
+import com.zhongzheng.modules.course.bo.CourseSectionQueryBo;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
import com.zhongzheng.modules.course.domain.CourseSection;
|
|
import com.zhongzheng.modules.course.domain.CourseSection;
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
import com.zhongzheng.modules.course.service.ICourseChapterSectionService;
|
|
@@ -1156,13 +1157,13 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
sectionVo.setSessionId(info.getChannelSessionId());//场次ID
|
|
sectionVo.setSessionId(info.getChannelSessionId());//场次ID
|
|
sectionVo.setRealDuration(info.getDuration().longValue()); //视频秒数
|
|
sectionVo.setRealDuration(info.getDuration().longValue()); //视频秒数
|
|
sectionVo.setDurationTime(info.getDuration().longValue());
|
|
sectionVo.setDurationTime(info.getDuration().longValue());
|
|
- sectionVo.setRealLiveStartTime(info.getStartTime().getTime()/1000);
|
|
|
|
sectionVo.setRealLiveEndTime(info.getEndTime().getTime()/1000);
|
|
sectionVo.setRealLiveEndTime(info.getEndTime().getTime()/1000);
|
|
- PolyvLiveQueryBo queryBo1 = new PolyvLiveQueryBo();
|
|
|
|
|
|
+ sectionVo.setRealLiveStartTime(info.getStartTime().getTime()/1000);
|
|
|
|
+ /* PolyvLiveQueryBo queryBo1 = new PolyvLiveQueryBo();
|
|
queryBo1.setChannelId(sectionVo.getLiveUrl());
|
|
queryBo1.setChannelId(sectionVo.getLiveUrl());
|
|
queryBo1.setSessionId(info.getChannelSessionId());
|
|
queryBo1.setSessionId(info.getChannelSessionId());
|
|
LiveListChannelVideoLibraryResponse.ChannelVideoLibrary channelVideoLibrary = iPolyvLiveService.ListChannelVideoLibrary(queryBo1);
|
|
LiveListChannelVideoLibraryResponse.ChannelVideoLibrary channelVideoLibrary = iPolyvLiveService.ListChannelVideoLibrary(queryBo1);
|
|
- sectionVo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());
|
|
|
|
|
|
+ sectionVo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());*/
|
|
sectionVo.setSectionType(3); //直播变为回放
|
|
sectionVo.setSectionType(3); //直播变为回放
|
|
CourseSection section = BeanUtil.toBean(sectionVo, CourseSection.class);
|
|
CourseSection section = BeanUtil.toBean(sectionVo, CourseSection.class);
|
|
section.setUpdateTime(DateUtils.getNowTime());
|
|
section.setUpdateTime(DateUtils.getNowTime());
|
|
@@ -1176,6 +1177,30 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 同步保利威场次vid
|
|
|
|
+ * @param bo
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void syncToReplay(UserQueryBo bo) throws Exception {
|
|
|
|
+ CourseSectionQueryBo queryBo = new CourseSectionQueryBo();
|
|
|
|
+ queryBo.setSyncVid(1);
|
|
|
|
+ List<CourseSectionVo> list = iCourseSectionService.queryList(queryBo);
|
|
|
|
+ System.out.println("节节");
|
|
|
|
+ System.out.println(list);
|
|
|
|
+ for(CourseSectionVo vo : list){
|
|
|
|
+ PolyvLiveQueryBo queryBo1 = new PolyvLiveQueryBo();
|
|
|
|
+ queryBo1.setChannelId(vo.getLiveUrl());
|
|
|
|
+ queryBo1.setSessionId(vo.getSessionId());
|
|
|
|
+ LiveListChannelVideoLibraryResponse.ChannelVideoLibrary channelVideoLibrary = iPolyvLiveService.ListChannelVideoLibrary(queryBo1);
|
|
|
|
+ vo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());
|
|
|
|
+ CourseSection section = BeanUtil.toBean(vo, CourseSection.class);
|
|
|
|
+ section.setUpdateTime(DateUtils.getNowTime());
|
|
|
|
+ iCourseSectionService.updateById(section);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
//获得可用学习天数
|
|
//获得可用学习天数
|
|
private static int getDutyDays(Date startDateStr, Date endDateStr, Long[] longs, Long studyDay) {
|
|
private static int getDutyDays(Date startDateStr, Date endDateStr, Long[] longs, Long studyDay) {
|
|
int result = 0;
|
|
int result = 0;
|