소스 검색

fix 节删除

he2802 3 년 전
부모
커밋
ad6ca0da72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseSectionServiceImpl.java

+ 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("存在开播时间同房间号的直播节");