Bläddra i källkod

清理repo中无用的方法

lideyin 5 år sedan
förälder
incheckning
f53ca283e7

+ 0 - 77
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/ExamRecordDataRepo.java

@@ -19,83 +19,6 @@ import cn.com.qmth.examcloud.core.oe.student.dao.entity.ExamRecordDataEntity;
  */
 @Repository
 public interface ExamRecordDataRepo extends JpaRepository<ExamRecordDataEntity, Long>, JpaSpecificationExecutor<ExamRecordDataEntity> {
-
-    public List<ExamRecordDataEntity> findByExamStudentId(Long examStudentId);
-
-    @Query(value = "select erd.* " +
-            "from ec_oes_exam_record_data erd " +
-            "where erd.exam_record_status in('EXAM_END','EXAM_OVERDUE') " +
-            "and erd.is_illegality=0 and (is_warn=0 or is_warn=1  and erd.is_audit=1) and erd.exam_student_id in ?1", nativeQuery = true)
-    public List<ExamRecordDataEntity> findByExamStudentIdList(List<Long> examStudentIdList);
-
-    public List<ExamRecordDataEntity> findByExamIdAndStudentCode(Long examId, String studentCode);
-
-    List<ExamRecordDataEntity> findByExamIdAndIdentityNumberAndCourseId(Long examId, String identityNumber, Long courseId);
-
-    /**
-     * 同步更新考生信息
-     *
-     * @param studentName
-     * @param studentCode
-     * @param infoCollector
-     */
-    @javax.transaction.Transactional
-    @Modifying
-    @Query(nativeQuery = true, value = "update ec_oes_exam_record_data set student_name = ?2,student_code = ?3,info_collector=?4 where exam_student_id = ?1")
-    public void syncUpdateExamStudentInfo(Long examStudentId, String studentName, String studentCode, String infoCollector);
-
-    @javax.transaction.Transactional
-    @Modifying
-    @Query(nativeQuery = true, value = "update ec_oes_exam_record_data set student_name = ?2  where student_id = ?1")
-    public void updateStudentName(Long studentId, String studentName);
-
-    @javax.transaction.Transactional
-    @Modifying
-    @Query(nativeQuery = true, value = "update ec_oes_exam_record_data set course_level = ?2 where course_id = ?1")
-    public void updateCourse(Long courseId, String courseLevel);
-
-    /**
-     * 根据studentId查询状态为"考试中"的在线考试记录
-     *
-     * @param studentId
-     * @return
-     */
-    @Query(value = " select * from ec_oes_exam_record_data t1 " +
-            " where t1.student_id = ?1  " +
-            " and t1.exam_record_status = 'EXAM_ING' " +
-            " and t1.exam_type = 'ONLINE'", nativeQuery = true)
-    public ExamRecordDataEntity findOnlineExamingRecordByStudentId(Long studentId);
-
-    /**
-     * 更新考试记录中的考试作答记录id
-     *
-     * @param examRecordQuestionId 考试作答记录id
-     * @param id                   examRecordDataId
-     * @return
-     */
-    @Transactional
-    @Modifying
-    @Query(value = "update ec_oes_exam_record_data set exam_record_questions_id=?1 where id=?2", nativeQuery = true)
-    int updateExamRecordDataQuestionIdById(String examRecordQuestionId, Long id);
-
-    /**
-     * 更新活体检测结果
-     *
-     * @param faceVerifyResult
-     * @param id
-     * @return
-     */
-    @Transactional
-    @Modifying
-    @Query(value = "update ec_oes_exam_record_data set face_verify_result = ?1  where student_id = ?2", nativeQuery = true)
-    int updateFaceVerifyResult(String faceVerifyResult, Long id);
-
-    @Query(value = "select * from ec_oes_exam_record_data " +
-            "where exam_record_status in('EXAM_END','EXAM_OVERDUE') and is_illegality=0 and (is_warn=0 or is_warn=1  and is_audit=1) " +
-            "and exam_id=?1 and id>=?2 order by id asc limit ?3", nativeQuery = true)
-    List<ExamRecordDataEntity> findLimitedDataByExamIdAndIdMoreThan(Long examId, Long startExamRecordId, int rowCount);
-    
-    
     @Query(value = "select *  from ec_oes_exam_record_data where batch_num!=?1 and id>?2 order by id limit ?3",nativeQuery = true)
     List<ExamRecordDataEntity> getLimitExamRecordDataList(Long batchNum, Long startId, Integer size);