diff --git a/src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentResultRepository.java b/src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentResultRepository.java index ae6c61a4d118c21be960a47f6b253cbf5643bc61..7bad150872bc1141bbafddff46b81ac156f49343 100644 --- a/src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentResultRepository.java +++ b/src/main/java/com/tarento/upsmf/examsAndAdmissions/repository/StudentResultRepository.java @@ -37,7 +37,7 @@ public interface StudentResultRepository extends JpaRepository<StudentResult, Lo Optional<StudentResult> findByExamIdAndStudentId(Long examId, Long studentId); @Modifying @Transactional - @Query("UPDATE StudentResult sr SET sr.externalMarks = null, sr.passingExternalMarks = null, sr.externalMarksObtained = null WHERE sr.examCycle_name = :examCycleName AND sr.instituteId = :instituteId") + @Query("UPDATE StudentResult sr SET sr.externalMarks = null, sr.passingExternalMarks = null, sr.externalMarksObtained = null, sr.finalMarkFlag = false WHERE sr.examCycle_name = :examCycleName AND sr.instituteId = :instituteId") int setExternalMarksToNull(@Param("examCycleName") String examCycleName, @Param("instituteId") Long instituteId); @Query("SELECT sr FROM StudentResult sr WHERE sr.firstName = :firstName AND sr.lastName = :lastName AND sr.enrollmentNumber = :enrollmentNumber") StudentResult findByFirstNameAndLastNameAndEnrollmentNumber(