|
@@ -3202,10 +3202,12 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
vipGroupDao.update(vipGroup);
|
|
|
}
|
|
|
|
|
|
- if ((newCourseSchedule.getStatus() != oldCourseSchedule.getStatus() && newCourseSchedule.getStatus() == CourseStatusEnum.NOT_START)) {
|
|
|
-
|
|
|
+ if (newCourseSchedule.getStatus() == CourseStatusEnum.NOT_START) {
|
|
|
//如果已结束修改成了未开始,需要更新学生考勤记录
|
|
|
- studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId);
|
|
|
+ studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((newCourseSchedule.getStatus() != oldCourseSchedule.getStatus() && newCourseSchedule.getStatus() == CourseStatusEnum.NOT_START)) {
|
|
|
|
|
|
// 清理课程作业
|
|
|
courseHomeworkService.delHomwworkByCourseScheduleId(courseScheduleId);
|