This commit is contained in:
雷欧(林平凡)
2025-01-09 09:44:47 +08:00
parent d140d7d1ac
commit 6cd1d60827

View File

@@ -33,7 +33,7 @@ public interface OrderRowRepository extends JpaRepository<OrderRow, String> {
@Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC") @Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC")
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDesc(int[] validCodes); List<OrderRow> 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<OrderRow> findByValidCodeNotInAndOrderTimeGreaterThanOrderByOrderTimeDesc( List<OrderRow> findByValidCodeNotInAndOrderTimeGreaterThanOrderByOrderTimeDesc(
int[] validCodes, int[] validCodes,
@DateTimeFormat(pattern = "yyyy-MM-dd") Date threeMonthsAgo @DateTimeFormat(pattern = "yyyy-MM-dd") Date threeMonthsAgo