This commit is contained in:
Maksim Skobaro 2025-06-24 03:10:48 +03:00
parent a7ce0fdbb6
commit 6f6b1dce3e

View File

@ -234,13 +234,6 @@ public class ParticipantService {
studentData = new StudentData();
}
if (participantSaveDTO.getStudentData().getCuratorId() != null) {
TeacherData teacherData = teacherDataRepository.findByIdThrow(participantSaveDTO.getStudentData().getCuratorId());
studentData.setCurator(teacherData);
} else {
studentData.setCurator(null);
}
studentData.setOtziv(participantSaveDTO.getStudentData().getOtziv());
studentData.setWork(participantSaveDTO.getStudentData().getWork());
studentData.setZachetka(participantSaveDTO.getStudentData().getZachetka());
@ -271,6 +264,13 @@ public class ParticipantService {
studentData.setGroup(null);
}
if (participantSaveDTO.getStudentData().getCuratorId() != null) {
TeacherData teacherData = teacherDataRepository.findByIdThrow(participantSaveDTO.getStudentData().getCuratorId());
studentData.setCurator(teacherData);
} else {
studentData.setCurator(null);
}
return studentData;
}