|
@@ -291,7 +291,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
|| practiceGroup.getSecondCourseTime().after(enableApplyEndDate)) {
|
|
|
enableCreateSecondCourse = false;
|
|
|
}
|
|
|
- for (int i = 0; i < applyDateRangeCourses.size() - 1; i++) {
|
|
|
+ for (int i = 0; i < applyDateRangeCourses.size(); i++) {
|
|
|
CourseSchedule preCourseSchedule = applyDateRangeCourses.get(i);
|
|
|
|
|
|
if (practiceGroup.getFirstCourseTime().before(preCourseSchedule.getEndClassTime())
|
|
@@ -482,7 +482,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
enableCreateSecondCourse = false;
|
|
|
}
|
|
|
|
|
|
- for (int i = 0; i < applyDateRangeCourses.size() - 1; i++) {
|
|
|
+ for (int i = 0; i < applyDateRangeCourses.size(); i++) {
|
|
|
CourseSchedule preCourseSchedule = applyDateRangeCourses.get(i);
|
|
|
|
|
|
if (practiceGroup.getFirstCourseTime().before(preCourseSchedule.getEndClassTime())
|