@@ -266,6 +266,9 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
if(CollectionUtils.isEmpty(examRooms)){
throw new BizException("请先建立考场");
}
+
Set<Long> roomIds = examRooms.stream().map(ExamRoom::getId).collect(Collectors.toSet());
//未排考学员可排考考场学员
List<ExamRoomStudentRelation> examRoomStudents = examRoomStudentRelationDao.getWithExamRooms(new ArrayList<>(roomIds));
@@ -643,6 +643,7 @@
exam_registration er
WHERE
examination_basic_id_ = #{examId}
+ AND er.status_ IN ('AUDIT_PASS', 'AUDIT_WAIT')
AND NOT EXISTS ( SELECT id_ FROM exam_room_student_relation WHERE examination_basic_id_ = #{examId} AND er.id_ = exam_registration_id_ )
</select>
</mapper>