|
|
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());
|
|
|
}
|
|
|
} |