1
This commit is contained in:
@@ -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中添加模糊查询方法
|
||||
|
||||
Reference in New Issue
Block a user