|
@@ -2566,6 +2566,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
checkNewCourseSchedules(courseSchedules,false);
|
|
|
if(oldCourseSchedule.getStatus() == CourseStatusEnum.NOT_START){
|
|
|
teacherAttendanceDao.batchUpdateTeacher(courseSchedules.stream().map(e->e.getId()).collect(Collectors.toSet()),oldCourseSchedule.getActualTeacherId());
|
|
|
+ //清空学生签到记录
|
|
|
+ studentAttendanceDao.deleteStudentAttendancesByCourse(courseSchedule.getId());
|
|
|
}
|
|
|
courseScheduleDao.update(oldCourseSchedule);
|
|
|
}
|