Commit 124695b6 authored by jiawei's avatar jiawei

修改 视频初审员和视频复审员查看视频详情报500,服务异常 错误

parent 16686519
...@@ -276,6 +276,10 @@ public class VideoContentController extends BaseController { ...@@ -276,6 +276,10 @@ public class VideoContentController extends BaseController {
@MethodLog(operModule = OperModule.VIDEOCONTENT, operType = OperType.SELECT) @MethodLog(operModule = OperModule.VIDEOCONTENT, operType = OperType.SELECT)
public Map<String, Object> getById(@PathVariable("id") String id) { public Map<String, Object> getById(@PathVariable("id") String id) {
VideoContent videoContent = videoContentService.getById(id); VideoContent videoContent = videoContentService.getById(id);
//修改服务器报500错误
if (videoContent==null){
return getSuccessResult();
}
if (videoContent.getVideoContentCatId() != null) { if (videoContent.getVideoContentCatId() != null) {
VideoContentCat videoContentCat = this.videoContentCatService.getById(videoContent.getVideoContentCatId()); VideoContentCat videoContentCat = this.videoContentCatService.getById(videoContent.getVideoContentCatId());
if (videoContentCat != null) { if (videoContentCat != null) {
......
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