From 87dd7b58d16f8ebfa262ecbbbea943d9dec7e51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BF=8A?= <873019219@qq.com> Date: Sun, 30 May 2021 16:19:11 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zfile/repository/ShortLinkConfigRepository.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/im/zhaojun/zfile/repository/ShortLinkConfigRepository.java b/src/main/java/im/zhaojun/zfile/repository/ShortLinkConfigRepository.java index 4cf3357..2513a13 100644 --- a/src/main/java/im/zhaojun/zfile/repository/ShortLinkConfigRepository.java +++ b/src/main/java/im/zhaojun/zfile/repository/ShortLinkConfigRepository.java @@ -37,18 +37,6 @@ public interface ShortLinkConfigRepository extends JpaRepository= :dateFrom" + " and (:dateTo is null or create_date <= :dateTo) " ) - // @Query(nativeQuery = true, - // value = " select * from SHORT_LINK where " + - // " key like concat('%', :key,'%') " + - // " and url like concat('%', :url,'%') " + - // " and (:dateFrom is null or date_format(create_date, '%Y-%m-%d') >= date_format(:dateFrom, '%Y-%m-%d'))" + - // " and (:dateTo is null or date_format(create_date, '%Y-%m-%d') <= date_format(:dateTo, '%Y-%m-%d')) ) ", - // countQuery = " select count(1) from SHORT_LINK where " + - // " key like concat('%', :key,'%') " + - // " and url like concat('%', :url,'%') " + - // " and (:dateFrom is null or date_format(create_date, '%Y-%m-%d') >= date_format(:dateFrom, '%Y-%m-%d'))" + - // " and (:dateTo is null or date_format(create_date, '%Y-%m-%d') <= date_format(:dateTo, '%Y-%m-%d')) ) " - // ) Page findByPage(String key, String url, Date dateFrom, Date dateTo, Pageable pageable); /**