From 3eff1138940458364131354686122d7529d351d4 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: Tue, 7 Jan 2025 13:44:46 +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 c98166c..0118c1a 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