|
@@ -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
|