|
@@ -1817,28 +1817,28 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
Date sunday1 = DateUtil.getWeekDayWithDate(allCourseDates.get(0), Calendar.SUNDAY);
|
|
|
int tp1 = courseScheduleDao.countTeacherPracticeCourse(practiceGroup.getUserId(), monday1, sunday1);
|
|
|
if(tp1>=80){
|
|
|
- throw new BizException("选择的老师课程已经超过80节");
|
|
|
+ throw new BizException("该老师的课程已预约满");
|
|
|
}
|
|
|
|
|
|
Date monday2 = DateUtil.getWeekDayWithDate(allCourseDates.get(1), Calendar.MONDAY);
|
|
|
Date sunday2 = DateUtil.getWeekDayWithDate(allCourseDates.get(1), Calendar.SUNDAY);
|
|
|
int tp2 = courseScheduleDao.countTeacherPracticeCourse(practiceGroup.getUserId(), monday2, sunday2);
|
|
|
if(tp2>=80){
|
|
|
- throw new BizException("选择的老师课程已经超过80节");
|
|
|
+ throw new BizException("该老师的课程已预约满");
|
|
|
}
|
|
|
|
|
|
Date monday3 = DateUtil.getWeekDayWithDate(allCourseDates.get(2), Calendar.MONDAY);
|
|
|
Date sunday3 = DateUtil.getWeekDayWithDate(allCourseDates.get(2), Calendar.SUNDAY);
|
|
|
int tp3 = courseScheduleDao.countTeacherPracticeCourse(practiceGroup.getUserId(), monday3, sunday3);
|
|
|
if(tp3>=80){
|
|
|
- throw new BizException("选择的老师课程已经超过80节");
|
|
|
+ throw new BizException("该老师的课程已预约满");
|
|
|
}
|
|
|
|
|
|
Date monday4 = DateUtil.getWeekDayWithDate(allCourseDates.get(3), Calendar.MONDAY);
|
|
|
Date sunday4 = DateUtil.getWeekDayWithDate(allCourseDates.get(3), Calendar.SUNDAY);
|
|
|
int tp4 = courseScheduleDao.countTeacherPracticeCourse(practiceGroup.getUserId(), monday4, sunday4);
|
|
|
if(tp4>=80){
|
|
|
- throw new BizException("选择的老师课程已经超过80节");
|
|
|
+ throw new BizException("该老师的课程已预约满");
|
|
|
}
|
|
|
|
|
|
List<CourseSchedule> courseSchedules6 = courseScheduleDao.findTeacherCoursesWithIncludeDateRange(practiceGroup.getUserId(), allCourseDates.get(0), DateUtil.addMinutes(allCourseDates.get(0), practiceCourseMinutes));
|