|
@@ -1187,17 +1187,17 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
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);
|
|
|
+ if(Validator.isNotEmpty(channelVideoLibrary.getVideoPoolId())){
|
|
|
+ vo.setRecordingUrl(channelVideoLibrary.getVideoPoolId());
|
|
|
+ CourseSection section = BeanUtil.toBean(vo, CourseSection.class);
|
|
|
+ section.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ iCourseSectionService.updateById(section);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|