This commit is contained in:
雷欧(林平凡)
2025-01-09 13:46:20 +08:00
parent 20b555ee46
commit 6b357b0727
2 changed files with 11 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ public interface OrderRowRepository extends JpaRepository<OrderRow, String> {
// 查找 validCode != 15 或者 !=-1 的订单行 ,并且按orderTime 降序
@Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC")
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDesc(int[] validCodes);
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDescAndUnionId(int[] validCodes,Long unionId);
@Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime >= ?2 order by o.orderTime DESC")
List<OrderRow> findByValidCodeNotInAndOrderTimeGreaterThanOrderByOrderTimeDesc(