|
@@ -128,7 +128,7 @@ public class StudentServiceImpl implements StudentService {
|
|
|
List<Long> majorIds = studentDOS.stream().map(StudentDO::getMajorId).collect(Collectors.toList());
|
|
|
List<Long> schoolIds = studentDOS.stream().map(StudentDO::getSchoolId).collect(Collectors.toList());
|
|
|
Map<Long,MajorDO> majorDOS = majorService.getMajors(majorIds).stream().collect(Collectors.toMap(MajorDO::getId, item->item));
|
|
|
- Map<Long,SchoolInfoDO> schoolInfoDOS = schoolInfoService.getSchoolInfos(schoolIds).stream().collect(Collectors.toMap(SchoolInfoDO::getId, item->item));
|
|
|
+ Map<Long,SchoolInfoDO> schoolInfoDOS = schoolInfoService.getSchoolInfos(schoolIds).stream().collect(Collectors.toMap(SchoolInfoDO::getSchoolId, item->item));
|
|
|
List<StudentRespVO> respVOS =new ArrayList<>(studentDOS.size()+1);
|
|
|
studentDOS.forEach(item->{
|
|
|
StudentRespVO respVO = BeanUtils.toBean(item, StudentRespVO.class);
|