|
@@ -349,19 +349,19 @@ public class BasicStudentServiceImpl extends ServiceImpl<BasicStudentMapper, Bas
|
|
|
if (checkRepeatMap.containsKey(studentCode)) {
|
|
|
// 校验整个导入批次是否有重复数据
|
|
|
BasicStudentParams check = checkRepeatMap.get(studentCode);
|
|
|
- if (Objects.equals(studentName, check.getStudentName())) {
|
|
|
+ if (!Objects.equals(studentName, check.getStudentName())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("导入批次学号为【" + studentCode + "】的学生,存在不同姓名");
|
|
|
}
|
|
|
- if (Objects.equals(phoneNumber, check.getPhoneNumber())) {
|
|
|
+ if (!Objects.equals(phoneNumber, check.getPhoneNumber())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("导入批次学号为【" + studentCode + "】的学生,存在不同电话");
|
|
|
}
|
|
|
- if (Objects.equals(clazzId, check.getClazzId())) {
|
|
|
+ if (!Objects.equals(clazzId, check.getClazzId())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("导入批次学号为【" + studentCode + "】的学生,存在不同班级");
|
|
|
}
|
|
|
- if (Objects.equals(majorId, check.getMajorId())) {
|
|
|
+ if (!Objects.equals(majorId, check.getMajorId())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("导入批次学号为【" + studentCode + "】的学生,存在不同专业");
|
|
|
}
|
|
|
- if (Objects.equals(collegeId, check.getCollegeId())) {
|
|
|
+ if (!Objects.equals(collegeId, check.getCollegeId())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("导入批次学号为【" + studentCode + "】的学生,存在不同学院");
|
|
|
}
|
|
|
continue;
|