|
|
@@ -70,7 +70,7 @@ public interface OrderRepo extends JpaRepository<Order, Long>, JpaSpecificationE
|
|
|
List<Order> findByCreatedAtBetweenAndSourceAndStatusIn(LocalDateTime start, LocalDateTime end, CollectionSource source, Collection<OrderStatus> statuses);
|
|
|
|
|
|
@Query(nativeQuery = true, value = "select o.user_id from order_info o " +
|
|
|
- " WHERE o.created_at < ?1 and o.created_at > ?2 and o.status = 'CANCELLED' " +
|
|
|
+ " WHERE o.created_at < ?1 and o.created_at > ?2 and o.status = 'NOT_PAID' " +
|
|
|
"GROUP BY o.user_id " +
|
|
|
"HAVING count(*) > 2")
|
|
|
List<Long> checkBlackList(LocalDateTime start, LocalDateTime end);
|