From 6cd1d60827fea1817ff33cd60c5f18fe0c6e3a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Thu, 9 Jan 2025 09:44:47 +0800 Subject: [PATCH] 1 --- .../java/cn/van/business/repository/OrderRowRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/van/business/repository/OrderRowRepository.java b/src/main/java/cn/van/business/repository/OrderRowRepository.java index 0118c1a..c98166c 100644 --- a/src/main/java/cn/van/business/repository/OrderRowRepository.java +++ b/src/main/java/cn/van/business/repository/OrderRowRepository.java @@ -33,7 +33,7 @@ public interface OrderRowRepository extends JpaRepository { @Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC") List findByValidCodeNotInOrderByOrderTimeDesc(int[] validCodes); - @Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime <= ?2 order by o.orderTime DESC") + @Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime >= ?2 order by o.orderTime DESC") List findByValidCodeNotInAndOrderTimeGreaterThanOrderByOrderTimeDesc( int[] validCodes, @DateTimeFormat(pattern = "yyyy-MM-dd") Date threeMonthsAgo