Browse Source

fix 节删除

he2802 3 years ago
parent
commit
ad6ca0da72

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseSectionServiceImpl.java

@@ -211,7 +211,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
             }
         }
         //直播
-        if(entity.getSectionType()==2){
+        if(Validator.isNotEmpty(entity.getSectionType())&&entity.getSectionType()==2){
             if(Validator.isNotEmpty(entity.getSectionId())){
                 if(this.baseMapper.checkCrossLiveTime(entity.getLiveStartTime(),entity.getLiveEndTime(),entity.getSectionId(),entity.getLiveUrl())>0){
                     throw new CustomException("存在开播时间同房间号的直播节");