|
@@ -910,8 +910,8 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
studentExamResultService.calculateStudentExamAvgScore(examRoom.getId());
|
|
|
}
|
|
|
examRoomDao.batchUpdate(examRooms);
|
|
|
- Set<Long> examRoomIds = examRooms.stream().map(ExamRoom::getId).collect(Collectors.toSet());
|
|
|
- List<Long> registIds = examRoomStudentRelationDao.findNoFinishedExamRegistIdsWIthExamRooms(new ArrayList<>(examRoomIds));
|
|
|
+
|
|
|
+ List<Long> registIds = examRoomStudentRelationDao.findNoFinishedExamRegistIdsWIthExamRooms();
|
|
|
if(!CollectionUtils.isEmpty(registIds)){
|
|
|
examRoomStudentRelationDao.deleteStudentRoomRegistRelations(registIds);
|
|
|
examCertificationDao.deleteWithRegist(registIds);
|