Commit 6e6cf57b authored by liqin's avatar liqin 💬

bug fixed

parent 85e8b6a3
......@@ -307,11 +307,14 @@ public class ExhibitionBoardController extends BaseController {
}
}
if (exhibitionBoard.getVideoContentId() != null) {
final VideoContent videoContent = this.videoContentService.getById(exhibitionBoard.getVideoContentId());
String videoContentId = exhibitionBoard.getVideoContentId();
final VideoContent videoContent = this.videoContentService.getById(videoContentId);
if (videoContent == null) {
exhibitionBoard.setVideoContentName("对应的视频内容已被删除");
} else {
exhibitionBoard.setVideoContentName(videoContent.getName());
final List<Asset> videoList = this.assetService.list(Wrappers.<Asset>lambdaQuery().eq(Asset::getRefItemId, videoContentId).eq(Asset::getFileCat, FileCatEnum.VIDEO_CONTENT.name()));
exhibitionBoard.setVideoList(videoList);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment