|
@@ -712,10 +712,10 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
for (CourseSchedule newCourseSchedule : courseSchedules) {
|
|
|
exitNode:
|
|
|
for (CourseSchedule existCourseSchedule : existCourseSchedules) {
|
|
|
- if (newCourseSchedule.getEndClassTime().before(existCourseSchedule.getStartClassTime())) {
|
|
|
+ if(newCourseSchedule.getEndClassTime().compareTo(existCourseSchedule.getStartClassTime()) <= 0){
|
|
|
continue newNode;
|
|
|
}
|
|
|
- if (existCourseSchedule.getEndClassTime().before(newCourseSchedule.getStartClassTime())) {
|
|
|
+ if(existCourseSchedule.getEndClassTime().compareTo(newCourseSchedule.getStartClassTime()) <= 0){
|
|
|
continue exitNode;
|
|
|
}
|
|
|
|