提交 4e43d73b authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 0781fa4b
......@@ -183,7 +183,8 @@ public class FgVideoLookLibrarySerivceImpl extends BaseServiceImpl<VideoLookLibr
if (ArrayUtils.isNotEmpty(list)) {
//对视频音频加工
for (FgQueryCourseInfoForm goodsForm : list) {
for (int i = list.size() - 1; i >= 0; i--) {
FgQueryCourseInfoForm goodsForm = list.get(i);
BigDecimal shi = new BigDecimal(0);//小时
BigDecimal fen = new BigDecimal(0);//分钟
BigDecimal miao = new BigDecimal(0);//秒
......@@ -196,6 +197,10 @@ public class FgVideoLookLibrarySerivceImpl extends BaseServiceImpl<VideoLookLibr
// 查询视频数据
VideoLibrary video = fgVideoLibraryService.selectByPrimaryKey(goodsForm.getId());
if(video != null) {
if("2".equals(video.getStatus().toString())) {
list.remove(i);
continue;
}
vo.setId(video.getId());
vo.setCover(video.getCover());
vo.setName(video.getName());
......@@ -217,6 +222,10 @@ public class FgVideoLookLibrarySerivceImpl extends BaseServiceImpl<VideoLookLibr
// 查询音频数据
AudioLibrary audio = fgAudioLibraryService.selectByPrimaryKey(goodsForm.getId());
if(audio != null) {
if("2".equals(audio.getStatus().toString())) {
list.remove(i);
continue;
}
vo.setId(audio.getId());
vo.setCover(audio.getCover());
vo.setName(audio.getName());
......@@ -238,6 +247,10 @@ public class FgVideoLookLibrarySerivceImpl extends BaseServiceImpl<VideoLookLibr
// 查询课程
CourseLibrary course = fgCourseLibraryService.selectByPrimaryKey(goodsForm.getId());
if(course != null) {
if("2".equals(course.getStatus().toString())) {
list.remove(i);
continue;
}
vo.setId(course.getId());
vo.setCover(course.getCover());
vo.setName(course.getName());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论