|
@@ -1816,6 +1816,11 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
insertTeacherAttendanceList.add(ta);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //如果已结束修改成了未开始,需要更新学生考勤记录
|
|
|
+ if ((newCourseSchedule.getStatus() != oldCourseSchedule.getStatus() && newCourseSchedule.getStatus() == CourseStatusEnum.NOT_START)) {
|
|
|
+ studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId);
|
|
|
+ }
|
|
|
|
|
|
// 计算课程时长
|
|
|
int oldMinutes = DateUtil.minutesBetween(oldCourseSchedule.getStartClassTime(), oldCourseSchedule.getEndClassTime());
|