|
@@ -25,9 +25,6 @@ public class OrderCancelService {
|
|
|
|
|
|
|
|
@Scheduled(fixedRate = 30000)
|
|
@Scheduled(fixedRate = 30000)
|
|
|
public void batchCancel() {
|
|
public void batchCancel() {
|
|
|
- if (generalProperties.isNotifyServer()) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
List<Order> orders = orderRepo.findByStatusAndCreatedAtBeforeAndDelFalse(OrderStatus.NOT_PAID,
|
|
List<Order> orders = orderRepo.findByStatusAndCreatedAtBeforeAndDelFalse(OrderStatus.NOT_PAID,
|
|
|
LocalDateTime.now().minusSeconds(210));
|
|
LocalDateTime.now().minusSeconds(210));
|
|
|
orders.parallelStream().forEach(o -> {
|
|
orders.parallelStream().forEach(o -> {
|