From 294068508ca408e17e67e6dc27507f3ae6e559a3 Mon Sep 17 00:00:00 2001 From: Radheshhathwar <radheshhathwar.bh@gmail.com> Date: Wed, 15 Nov 2023 18:23:10 +0530 Subject: [PATCH] dataCorrection/requests --- .../upsmf/examsAndAdmissions/service/HallTicketService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java b/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java index 511213d..727ba06 100644 --- a/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java +++ b/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/HallTicketService.java @@ -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()); -- GitLab