|
@@ -7,7 +7,6 @@ import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
|
import java.util.Comparator;
|
|
|
import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
@@ -158,7 +157,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
throw new BusinessException("未找到考试");
|
|
|
}
|
|
|
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考生Id和当前登录用户不一致");
|
|
|
}
|
|
|
if (es.getLeftExamCount() == 0) {
|
|
@@ -266,7 +265,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -319,7 +318,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -348,7 +347,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -397,7 +396,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -423,7 +422,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -474,7 +473,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|
|
@@ -566,7 +565,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
if (es == null) {
|
|
|
throw new BusinessException("未找到考生");
|
|
|
}
|
|
|
- if (studentId.equals(es.getStudentId())) {
|
|
|
+ if (!studentId.equals(es.getStudentId())) {
|
|
|
throw new BusinessException("考试记录的学生Id和当前登录用户不一致");
|
|
|
}
|
|
|
|