diff --git a/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentResultService.java b/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentResultService.java index 6fe2413e6e22269d0701555ef8cc2677195fa5f7..3f147c52ced164d1b0cdc4b2b307718de3152716 100644 --- a/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentResultService.java +++ b/src/main/java/com/tarento/upsmf/examsAndAdmissions/service/StudentResultService.java @@ -421,7 +421,7 @@ public class StudentResultService { response.put(Constants.RESPONSE, studentResultDTO); response.setResponseCode(HttpStatus.OK); } else { - ResponseDto.setErrorResponse(response, "RESULT_NOT_FOUND", "No result found for the given enrollment number and examCycle.", HttpStatus.NOT_FOUND); + ResponseDto.setErrorResponse(response, "RESULT_NOT_FOUND", "No result found for the given studentId and examCycle.", HttpStatus.NOT_FOUND); } return response; @@ -457,9 +457,9 @@ public class StudentResultService { .map(studentResult -> { ExamDetailsDTO examDto = new ExamDetailsDTO(); examDto.setExamName(studentResult.getExam_name()); - examDto.setInternalMarks(studentResult.getInternalMarks()); - examDto.setExternalMarks(studentResult.getExternalMarks()); - examDto.setTotalMarks(studentResult.getTotalMarks()); + examDto.setInternalMarks(studentResult.getInternalMarksObtained()); + examDto.setExternalMarks(studentResult.getExternalMarksObtained()); + examDto.setTotalMarks(studentResult.getTotalMarksObtained()); examDto.setGrade(studentResult.getGrade()); examDto.setResult(studentResult.getResult()); examDto.setStatus(studentResult.getStatus().name());