|
@@ -1539,8 +1539,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
|
|
|
//课程结束时间必须在21:00之前
|
|
|
if(DateUtil.getHour(existCours.getEndClassTime()) > 20 && DateUtil.getMinute(existCours.getEndClassTime()) > 0){
|
|
|
- //TODO: 课程结束时间不能超过21:00,请重新调整上课时间
|
|
|
- //throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
+ throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
}
|
|
|
|
|
|
if(!DateUtil.isSameDay(existCours.getStartClassTime(), existCours.getEndClassTime())){
|
|
@@ -3179,8 +3178,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
|
|
|
//课程结束时间必须在21:00之前
|
|
|
if(DateUtil.getHour(newCourseSchedule.getEndClassTime()) > 20 && DateUtil.getMinute(newCourseSchedule.getEndClassTime()) > 0){
|
|
|
- //TODO: 2018/11/22 课程结束时间不能超过21:00,请重新调整上课时间
|
|
|
- //throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
+ throw new BizException("课程结束时间不能超过21:00,请重新调整上课时间");
|
|
|
}
|
|
|
|
|
|
//判断上课时间是否跨天
|
|
@@ -6152,11 +6150,11 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
log.warn("liveRoom sendChatRoomMessage is null, liveRoomId:{}, updateFlag={}, item.liveId={}", liveRoomId,
|
|
|
updateFlag, item.getLiveRoomId());
|
|
|
|
|
|
- boolean anyMatch = newCourseSchedules.stream().anyMatch(x -> x.getId().longValue() == x.getId())
|
|
|
+ /*boolean anyMatch = newCourseSchedules.stream().anyMatch(x -> x.getId().longValue() == x.getId())
|
|
|
&& newCourseSchedules.size() > 1;
|
|
|
if (!updateFlag && (Optional.ofNullable(item.getContinuousCourse()).orElse(false) || anyMatch)) {
|
|
|
throw new BizException("课程信息已变更,请重新操作");
|
|
|
- }
|
|
|
+ }*/
|
|
|
return;
|
|
|
}
|
|
|
|