deason 1 년 전
부모
커밋
db3239360d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/ExamIpLimitRepo.java

+ 1 - 1
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/ExamIpLimitRepo.java

@@ -15,7 +15,7 @@ public interface ExamIpLimitRepo extends JpaRepository<ExamIpLimitEntity, Long>,
 			QueryByExampleExecutor<ExamIpLimitEntity>, JpaSpecificationExecutor<ExamIpLimitEntity> {
 
 	@Query(value = "SELECT count(1) from ec_e_exam_ip_limit t where t.exam_id = ?1 " +
-			"AND t.limit_type = ?2 AND ?3 REGEXP t.ip ",nativeQuery = true)
+			"AND t.limit_type = ?2 AND t.ip = ?3",nativeQuery = true)
 	int countByExamIdAndLimitTypeAndIp(Long examId, String limitType, String ip);
 
 	@Modifying