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