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 7bad150872bc1141bbafddff46b81ac156f49343..deca016259a76f8367f96441a3527f53d1e59b65 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, sr.finalMarkFlag = false 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, sr.published = 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(