Commit 29406850 authored by Radheshhathwar's avatar Radheshhathwar
Browse files

dataCorrection/requests

1 merge request!186dataCorrection/requests
Showing with 2 additions and 2 deletions
+2 -2
......@@ -346,10 +346,10 @@ public class HallTicketService {
formattedRequest.put("lastName", student.getSurname()); // changed from 'surName'
formattedRequest.put("enrollmentNumber", student.getEnrollmentNumber());
StudentExamRegistration registration = studentExamRegistrationRepository.getByStudentIdAndExamCycleId(student.getId(), request.getExamCycle().getId());
List<StudentExamRegistration> registration = studentExamRegistrationRepository.getByExamCycleIdAndStudentId(request.getExamCycle().getId(), student.getId()) ;
if (registration != null) {
Map<String, Object> examCycleData = new HashMap<>();
ExamCycle examCycle = registration.getExamCycle();
ExamCycle examCycle = registration.get(0).getExamCycle();
examCycleData.put("id", examCycle.getId());
examCycleData.put("examCyclename", examCycle.getExamCycleName());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment