...
|
...
|
@@ -31,6 +31,7 @@ import com.yohoufo.order.common.Payment; |
|
|
import com.yohoufo.order.event.BeforeDepotReceiveEvent;
|
|
|
import com.yohoufo.order.event.BeforeSellerDeliverEvent;
|
|
|
import com.yohobuy.ufo.model.order.vo.AddressInfo;
|
|
|
import com.yohoufo.order.event.ErpBuyerOrderEvent;
|
|
|
import com.yohoufo.order.event.PayConfirmEvent;
|
|
|
import com.yohoufo.order.model.PayQueryBo;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
...
|
...
|
@@ -126,6 +127,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
CacheKeyBuilder.orderDetailKey(sellerUid, TabType.SELL.getValue(), orderCode),
|
|
|
CacheKeyBuilder.orderDetailKey(uid, TabType.BUY.getValue(), orderCode),
|
|
|
CacheKeyBuilder.buyerOrderNums(uid)));
|
|
|
|
|
|
ErpBuyerOrderEvent event = new ErpBuyerOrderEvent(uid);
|
|
|
EventBusPublisher.publishEvent(event);
|
|
|
} else {
|
|
|
throw new ServiceException(ServiceError.ORDER_STATUS_INVALIDATE); // 更新失败,可能是因为订单状态已经被并发修改
|
|
|
}
|
...
|
...
|
@@ -407,6 +411,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
CacheKeyBuilder.orderDetailKey(buyerUid, TabType.BUY.getValue(), orderCode),
|
|
|
CacheKeyBuilder.buyerOrderNums(buyerUid)));
|
|
|
|
|
|
ErpBuyerOrderEvent event = new ErpBuyerOrderEvent(buyerUid);
|
|
|
EventBusPublisher.publishEvent(event);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -638,7 +645,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
CacheKeyBuilder.orderListKey(uid, TabType.BUY.getValue()),
|
|
|
CacheKeyBuilder.sellerOrderDetailKey(sellerOrderGoods),
|
|
|
CacheKeyBuilder.orderDetailKey(sellerUid, TabType.SELL.getValue(), orderCode),
|
|
|
CacheKeyBuilder.orderDetailKey(uid, TabType.BUY.getValue(), orderCode)));
|
|
|
CacheKeyBuilder.orderDetailKey(uid, TabType.BUY.getValue(), orderCode),
|
|
|
CacheKeyBuilder.buyerOrderNums(uid)));
|
|
|
|
|
|
ErpBuyerOrderEvent event = new ErpBuyerOrderEvent(uid);
|
|
|
EventBusPublisher.publishEvent(event);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|