|
@@ -135,7 +135,6 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
|
|
|
List<ExamRoomStudentRelation> studentsWithExamRoom = examRoomStudentRelationDao.findStudentsWithExamRoom(examRoomId);
|
|
|
Set<Long> existRegistIds = studentsWithExamRoom.stream().map(ExamRoomStudentRelation::getExamRegistrationId).collect(Collectors.toSet());
|
|
|
- Set<Integer> existStudentIds = studentsWithExamRoom.stream().map(ExamRoomStudentRelation::getStudentId).collect(Collectors.toSet());
|
|
|
|
|
|
String[] registIds = registIdsStr.split(",");
|
|
|
|
|
@@ -143,9 +142,6 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
Map<Integer, ExamRegistration> studentRegistMap = examRegistrations.stream().collect(Collectors.toMap(ExamRegistration::getId, e -> e));
|
|
|
|
|
|
Set<Integer> studentIds = examRegistrations.stream().map(ExamRegistration::getStudentId).collect(Collectors.toSet());
|
|
|
- if(studentIds.size()!=registIds.length){
|
|
|
- throw new BizException("学员重复");
|
|
|
- }
|
|
|
|
|
|
List<ExamRoomStudentRelation> examRoomStudentRelations=new ArrayList<>();
|
|
|
List<ExamCertification> examCertifications=new ArrayList<>();
|
|
@@ -158,9 +154,6 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
if(Objects.isNull(examRegistration)){
|
|
|
throw new BizException("学员信息错误");
|
|
|
}
|
|
|
- if(existStudentIds.contains(examRegistration.getStudentId())){
|
|
|
- throw new BizException("学员重复");
|
|
|
- }
|
|
|
|
|
|
ExamRoomStudentRelation e=new ExamRoomStudentRelation();
|
|
|
e.setExamRegistrationId(Long.valueOf(registId));
|