zouxuan 5 years ago
parent
commit
b82c31a516

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleServiceImpl.java

@@ -2561,6 +2561,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);
     }