|
@@ -205,17 +205,18 @@ public class BaseNewStudentServiceImpl extends MPJBaseServiceImpl<BaseNewStudent
|
|
List<BaseNewStudentScoreExcelVo> errorList = new ArrayList<>();
|
|
List<BaseNewStudentScoreExcelVo> errorList = new ArrayList<>();
|
|
List<BaseNewStudent> updateList = new ArrayList<>();
|
|
List<BaseNewStudent> updateList = new ArrayList<>();
|
|
for (BaseNewStudentScoreExcelVo el : excelDataList) {
|
|
for (BaseNewStudentScoreExcelVo el : excelDataList) {
|
|
- BaseNewStudent student = this.baseMapper.selectOne(
|
|
|
|
|
|
+ List<BaseNewStudent> studentList = this.baseMapper.selectList(
|
|
new QueryWrapper<BaseNewStudent>().lambda()
|
|
new QueryWrapper<BaseNewStudent>().lambda()
|
|
.eq(BaseNewStudent::getGender, genderMap.get(el.getGender()))
|
|
.eq(BaseNewStudent::getGender, genderMap.get(el.getGender()))
|
|
.eq(BaseNewStudent::getGraduateSchool, el.getGraduateSchool())
|
|
.eq(BaseNewStudent::getGraduateSchool, el.getGraduateSchool())
|
|
.eq(BaseNewStudent::getGraduateClass, el.getGraduateClass())
|
|
.eq(BaseNewStudent::getGraduateClass, el.getGraduateClass())
|
|
.eq(BaseNewStudent::getName, el.getName())
|
|
.eq(BaseNewStudent::getName, el.getName())
|
|
);
|
|
);
|
|
- if(student == null){
|
|
|
|
|
|
+ if(!studentList.isEmpty() && studentList.size() > 1){
|
|
errorList.add(el);
|
|
errorList.add(el);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ BaseNewStudent student = studentList.get(0);
|
|
student.setScore(el.getScore());
|
|
student.setScore(el.getScore());
|
|
updateList.add(student);
|
|
updateList.add(student);
|
|
}
|
|
}
|