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