Authored by sailing-PC\sailing

48->36

@@ -77,7 +77,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { @@ -77,7 +77,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService {
77 .uid(orderInfo.getSellerUid()).prdName(sellerOrderGoods.getProductName()).build(); 77 .uid(orderInfo.getSellerUid()).prdName(sellerOrderGoods.getProductName()).build();
78 EventBusPublisher.publishEvent(deliverNoticeEvent); 78 EventBusPublisher.publishEvent(deliverNoticeEvent);
79 79
80 - //卖家48小时不发货取消 80 + //卖家36小时不发货取消
81 SellerCancelDeliverEvent event = SellerCancelDeliverEvent.builder() 81 SellerCancelDeliverEvent event = SellerCancelDeliverEvent.builder()
82 .uid(uid).sellerUid(orderInfo.getSellerUid()).skup(sellerOrderGoods.getId()) 82 .uid(uid).sellerUid(orderInfo.getSellerUid()).skup(sellerOrderGoods.getId())
83 .orderCode(orderInfo.getOrderCode()).build(); 83 .orderCode(orderInfo.getOrderCode()).build();
@@ -20,7 +20,7 @@ public class DeliverNoticeAsyncHandler implements IEventHandler<DeliverNoticeEve @@ -20,7 +20,7 @@ public class DeliverNoticeAsyncHandler implements IEventHandler<DeliverNoticeEve
20 20
21 final Logger logger = LoggerFactory.getLogger(getClass()); 21 final Logger logger = LoggerFactory.getLogger(getClass());
22 22
23 - public static final int DELAY_MINUTES_36_HOURS = 36*60; 23 + public static final int DELAY_MINUTES_24_HOURS = 24*60;
24 24
25 @Autowired 25 @Autowired
26 private TradeMqSender tradeMqSender; 26 private TradeMqSender tradeMqSender;
@@ -30,6 +30,6 @@ public class DeliverNoticeAsyncHandler implements IEventHandler<DeliverNoticeEve @@ -30,6 +30,6 @@ public class DeliverNoticeAsyncHandler implements IEventHandler<DeliverNoticeEve
30 @Subscribe 30 @Subscribe
31 public void handle(DeliverNoticeEvent event) { 31 public void handle(DeliverNoticeEvent event) {
32 logger.info("in DeliverNoticeAsyncHandler handler, msg {}", event); 32 logger.info("in DeliverNoticeAsyncHandler handler, msg {}", event);
33 - tradeMqSender.send(TopicConstants.ORDER_NOT_DELIVER_NOTICE, event, DELAY_MINUTES_36_HOURS); 33 + tradeMqSender.send(TopicConstants.ORDER_NOT_DELIVER_NOTICE, event, DELAY_MINUTES_24_HOURS);
34 } 34 }
35 } 35 }
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component; @@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
17 public class SellerCancelDeliverHandler implements IEventHandler<SellerCancelDeliverEvent> { 17 public class SellerCancelDeliverHandler implements IEventHandler<SellerCancelDeliverEvent> {
18 18
19 private final Logger logger = LoggerFactory.getLogger(getClass()); 19 private final Logger logger = LoggerFactory.getLogger(getClass());
20 - public static final int DELAY_MINUTES_48_HOURS = 48 * 60 ; 20 + public static final int DELAY_MINUTES_36_HOURS = 36 * 60 ;
21 21
22 @Autowired 22 @Autowired
23 private TradeMqSender tradeMqSender; 23 private TradeMqSender tradeMqSender;
@@ -27,6 +27,6 @@ public class SellerCancelDeliverHandler implements IEventHandler<SellerCancelDel @@ -27,6 +27,6 @@ public class SellerCancelDeliverHandler implements IEventHandler<SellerCancelDel
27 public void handle(SellerCancelDeliverEvent event) { 27 public void handle(SellerCancelDeliverEvent event) {
28 logger.info("Subscribe Buyer Confirm delay msg, event {}", event); 28 logger.info("Subscribe Buyer Confirm delay msg, event {}", event);
29 29
30 - tradeMqSender.send(TopicConstants.SELLER_ORDER_AUTO_CANCEL_DELIVER, event, DELAY_MINUTES_48_HOURS); 30 + tradeMqSender.send(TopicConstants.SELLER_ORDER_AUTO_CANCEL_DELIVER, event, DELAY_MINUTES_36_HOURS);
31 } 31 }
32 } 32 }
@@ -21,7 +21,7 @@ consumer: @@ -21,7 +21,7 @@ consumer:
21 - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer 21 - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer
22 topic: sellerOrder.autoCancelDeliver 22 topic: sellerOrder.autoCancelDeliver
23 delay: 23 delay:
24 - interval: 2880 24 + interval: 2160
25 25
26 - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer 26 - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer
27 topic: order.notPaidNotice 27 topic: order.notPaidNotice
@@ -21,7 +21,7 @@ consumer: @@ -21,7 +21,7 @@ consumer:
21 - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer 21 - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer
22 topic: sellerOrder.autoCancelDeliver 22 topic: sellerOrder.autoCancelDeliver
23 delay: 23 delay:
24 - interval: 2880 24 + interval: 2160
25 25
26 #order.notPaidNotice 26 #order.notPaidNotice
27 - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer 27 - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer
@@ -32,7 +32,7 @@ consumer: @@ -32,7 +32,7 @@ consumer:
32 - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer 32 - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
33 topic: order.notDeliver 33 topic: order.notDeliver
34 delay: 34 delay:
35 - interval: 2160 35 + interval: 1440
36 36
37 37
38 - address: ${rabbit_common} 38 - address: ${rabbit_common}