|
@@ -164,9 +164,12 @@ public class CourseStreamingServiceImpl extends ServiceImpl<CourseStreamingMappe
|
|
|
*/
|
|
|
private void validEntityBeforeSave(CourseStreaming entity){
|
|
|
//TODO 做一些数据校验,如唯一约束
|
|
|
- if(checkNameUnique(entity)){
|
|
|
- throw new CustomException("名称重复");
|
|
|
+ if(Validator.isNotEmpty(entity.getStatus())&&entity.getStatus()!=-1){
|
|
|
+ if(checkNameUnique(entity)){
|
|
|
+ throw new CustomException("名称重复");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
if(StringUtils.isNotBlank(entity.getRecordingVideoId())){
|
|
|
try{
|
|
|
PolyvVideoQuerVo polyvVideo = iPolyvVideoService.queryById(entity.getRecordingVideoId());
|