|
@@ -326,7 +326,7 @@ public class TBExamStudentServiceImpl extends ServiceImpl<TBExamStudentMapper, T
|
|
|
|
|
|
//考试信息
|
|
|
List<ExamInfo> examInfo = tbExamStudentMapper.listExamBySchoolIdAndStudentCode(schoolId, studentCode);
|
|
|
- if (Objects.isNull(examInfo)) {
|
|
|
+ if (Objects.isNull(examInfo) || examInfo.size() == 0) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("未找到此考生的考试信息");
|
|
|
}
|
|
|
for (ExamInfo info : examInfo) {
|