|
@@ -2979,9 +2979,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
Map<Integer, String> classGroupSubjectNameMap = MapUtil.convertIntegerMap(classGroupSubjectNameMaps);
|
|
|
|
|
|
List<Integer> schoolIds = oldCourses.stream().filter(o -> Objects.nonNull(o.getSchoolId())).map(CourseSchedule::getSchoolId).collect(Collectors.toList());
|
|
|
- List<School> schools = schoolDao.getSchools(schoolIds);
|
|
|
Map<Integer, String> idSchoolNameMap = new HashMap<>();
|
|
|
- if(!CollectionUtils.isEmpty(schools)){
|
|
|
+ if(!CollectionUtils.isEmpty(schoolIds)){
|
|
|
+ List<School> schools = schoolDao.getSchools(schoolIds);
|
|
|
idSchoolNameMap = schools.stream().collect(Collectors.toMap(School::getId, s->s.getName(), (s1, s2)->s1));
|
|
|
}
|
|
|
|