This commit is contained in:
van
2026-06-10 17:23:22 +08:00
parent 999844ed3b
commit 5acff87411

View File

@@ -63,7 +63,8 @@ public interface OrderRowRepository extends JpaRepository<OrderRow, String> {
List<OrderRow> findByUnionId(long l);
@Query("SELECT DISTINCT o.orderId FROM OrderRow o WHERE o.goodsInfoId IS NULL AND o.orderId IS NOT NULL ORDER BY o.orderTime DESC")
@Query("SELECT o.orderId FROM OrderRow o WHERE o.goodsInfoId IS NULL AND o.orderId IS NOT NULL "
+ "GROUP BY o.orderId ORDER BY MAX(o.orderTime) DESC")
List<Long> findDistinctOrderIdsWithNullGoodsInfo(Pageable pageable);
//// 在OrderRowRepository中添加模糊查询方法