详情页增加了删除状态的判断
This commit is contained in:
@@ -69,13 +69,9 @@ public class CaseClinicalVideoController {
|
||||
return Response.error("非法视频");
|
||||
}
|
||||
|
||||
// 删除状态
|
||||
if (video.getDeleteStatus() == 1){
|
||||
return Response.error(201,null,"该作品已被删除");
|
||||
}
|
||||
|
||||
// 状态(1:正常 2:禁用)
|
||||
if (video.getVideoStatus() == 2){
|
||||
// 检测作品状态
|
||||
boolean result = caseClinicalVideoService.checkClinicalVideoStatus(video);
|
||||
if (!result){
|
||||
return Response.error(201,null,"该作品已被删除");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user