schedule.setTeacherList(teacherList);
return courseMap;
}
private Teacher findOrCreateTeacher(Map<String, Teacher> teacherMap, String code) {
Teacher teacher = teacherMap.get(code);
if (teacher == null) {
teacher = new Teacher();
int id = teacherMap.size();
teacher.setId((long) id);
teacher.setCode(code);
teacherMap.put(code, teacher);
}
return teacher;
}