Browse Source

Merge remote-tracking branch 'origin/master'

Joburgess 5 years ago
parent
commit
75431b2585

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

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