Authored by qinchao

去掉不用的consumer (春节期间120小时发货)

... ... @@ -40,7 +40,7 @@ public interface TopicConstants {
String SELLER_ORDER_AUTO_CANCEL_DELIVER = "sellerOrder.autoCancelDeliver";
String SELLER_ORDER_AUTO_CANCEL_DELIVER_120 = "sellerOrder.autoCancelDeliver_120";
//String SELLER_ORDER_AUTO_CANCEL_DELIVER_120 = "sellerOrder.autoCancelDeliver_120";
/**
* 付款截止时间前5分钟
*/
... ... @@ -48,6 +48,6 @@ public interface TopicConstants {
String ORDER_NOT_DELIVER_NOTICE = "order.notDeliver";
String ORDER_NOT_DELIVER_NOTICE_108 = "order.notDeliver_108";
//String ORDER_NOT_DELIVER_NOTICE_108 = "order.notDeliver_108";
}
... ...
package com.yohoufo.order.mq.consumer;
import com.yohoufo.order.event.SellerCancelDeliverEvent;
import com.yohoufo.order.mq.TopicConstants;
import com.yohoufo.order.service.impl.BuyerOrderCancelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 卖家超时发货
* Created by chenchao on 2018/9/30.
*/
@Component
public class SellerOrderCancelDeliverDelayMsgConsumer120 extends JsonObjectMessageConsumer<SellerCancelDeliverEvent> {
@Autowired
private BuyerOrderCancelService buyerOrderCancelService;
@Override
public String getTopic() {
return TopicConstants.SELLER_ORDER_AUTO_CANCEL_DELIVER_120;
}
@Override
public void handle(SellerCancelDeliverEvent event) {
buyerOrderCancelService.cancelForSellerSendOutTimeout(event.getUid(), event.getOrderCode(), event.getSkup(), event.getSellerOrderGoods());
}
}
... ... @@ -43,18 +43,6 @@ consumer:
delay:
interval: 2160
#春节期间二次发货提醒时间延长的108小时 ,后续不再使用,6.8.6以后的版本可以去掉
- class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
topic: order.notDeliver_108
delay:
interval: 6480
#春节期间发货时间延长的120小时 ,后续不再使用,6.8.6以后的版本可以去掉
- class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer120
topic: sellerOrder.autoCancelDeliver_120
delay:
interval: 7200
#更新物流调拨信息
- address: 192.168.102.45:5672
username: yoho
... ...
... ... @@ -60,18 +60,6 @@ consumer:
delay:
interval: 7200
#春节期间二次发货提醒时间延长的108小时 ,后续不再使用,6.8.6以后的版本可以去掉
- class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
topic: order.notDeliver_108
delay:
interval: 6480
#春节期间发货时间延长的120小时 ,后续不再使用,6.8.6以后的版本可以去掉
- class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer120
topic: sellerOrder.autoCancelDeliver_120
delay:
interval: 7200
- address: ${rabbit_ufo}
username: ${rabbit_ufo_user}
password: ${rabbit_ufo_password}
... ...