Joburgess преди 5 години
родител
ревизия
785a5fb672
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomServiceImpl.java

+ 3 - 1
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomServiceImpl.java

@@ -907,7 +907,9 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 			imFeignService.destroyRoom(examRoom.getId(),examRoom.getMainTeacherUserId().toString());
 			studentExamResultService.calculateStudentExamAvgScore(examRoom.getId());
 		}
-		examRoomDao.batchUpdate(examRooms);
+		if(!CollectionUtils.isEmpty(examRooms)){
+			examRoomDao.batchUpdate(examRooms);
+		}
 
 		List<Long> registIds = examRoomStudentRelationDao.findNoFinishedExamRegistIdsWIthExamRooms();
 		if(!CollectionUtils.isEmpty(registIds)){