|
@@ -34,4 +34,8 @@ public interface ExamRecordDataRepo extends JpaRepository<ExamRecordDataEntity,
|
|
|
@Modifying
|
|
|
@Query(value = "update ec_oes_exam_record_data set sync_status=?1 where id=?2", nativeQuery = true)
|
|
|
int updateExamRecordSyncStatusById(String syncStatus, Long id);
|
|
|
+
|
|
|
+ @Query(value = "SELECT c.name from ec_oes_exam_record_data d LEFT JOIN ec_b_course c ON d.course_id = c.id " +
|
|
|
+ "WHERE d.id = ?1", nativeQuery = true)
|
|
|
+ String findCourseNameById(Long id);
|
|
|
}
|