瀏覽代碼

更正repo中的表名

lideyin 5 年之前
父節點
當前提交
e843339117

+ 3 - 3
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/ExamFaceLivenessVerifyRepo.java

@@ -21,7 +21,7 @@ public interface ExamFaceLivenessVerifyRepo extends JpaRepository<ExamFaceLivene
      * @param examRecordDataId
      * @return
      */
-    @Query(nativeQuery = true, value = "select * from ec_oe_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 0 order by id asc")
+    @Query(nativeQuery = true, value = "select * from ec_oes_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 0 order by id asc")
     List<ExamFaceLivenessVerifyEntity> findByExamRecordDataIdOrderById(Long examRecordDataId);
     
     /**
@@ -29,7 +29,7 @@ public interface ExamFaceLivenessVerifyRepo extends JpaRepository<ExamFaceLivene
      * @param examRecordDataId
      * @return
      */
-    @Query(nativeQuery = true, value = "select 1 from ec_oe_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 0 limit 1")
+    @Query(nativeQuery = true, value = "select 1 from ec_oes_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 0 limit 1")
     Long countByExamRecordDataId(Long examRecordDataId);
 
     /**
@@ -37,7 +37,7 @@ public interface ExamFaceLivenessVerifyRepo extends JpaRepository<ExamFaceLivene
      * @param examRecordDataId
      * @return
      */
-    @Query(nativeQuery = true, value = "select * from ec_oe_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 1 order by id desc limit 1")
+    @Query(nativeQuery = true, value = "select * from ec_oes_exam_face_liveness_verify t where t.exam_record_data_id = ?1 and t.is_error = 1 order by id desc limit 1")
     ExamFaceLivenessVerifyEntity findErrorFaceVerifyByExamRecordDataId(Long examRecordDataId);
 
     List<ExamFaceLivenessVerifyEntity> findByExamRecordDataId(Long examRecordDataId);

+ 1 - 1
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/FaceBiopsyItemRepo.java

@@ -61,6 +61,6 @@ public interface FaceBiopsyItemRepo extends JpaRepository<FaceBiopsyItemEntity,
     @Transactional
     @Modifying
     @Query(nativeQuery = true,
-            value = "update ec_oe_exam_face_biopsy_item set result=?2,error_msg=?3,completed=?4 where id=?1")
+            value = "update ec_oes_exam_face_biopsy_item set result=?2,error_msg=?3,completed=?4 where id=?1")
     void updateFaceBiopsyItemResult(Long id, boolean result, String errorMsg, boolean completed);
 }

+ 1 - 1
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/FaceBiopsyRepo.java

@@ -24,6 +24,6 @@ public interface FaceBiopsyRepo extends JpaRepository<FaceBiopsyEntity, Long>, J
     @Transactional
     @Modifying
     @Query(nativeQuery = true,
-            value = "update ec_oe_exam_face_biopsy set result=?2,error_msg=?3 where exam_record_data_id=?1")
+            value = "update ec_oes_exam_face_biopsy set result=?2,error_msg=?3 where exam_record_data_id=?1")
     void updateFaceBiopsyResult(Long examRecordDataId, boolean result, String errorMsg);
 }