...
|
...
|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.yoho.core.rabbitmq.YhProducer;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
|
|
|
import com.yohobuy.ufo.model.order.resp.ExpressInfoRespBo;
|
|
|
import com.yohoufo.common.constant.ExpressInfoConstant;
|
...
|
...
|
@@ -18,6 +19,8 @@ import com.yohoufo.order.model.AddressInfo; |
|
|
import com.yohoufo.order.model.response.AppraiseAddressResp;
|
|
|
import com.yohoufo.order.service.IExpressCompanyService;
|
|
|
import com.yohoufo.order.service.IExpressInfoService;
|
|
|
import com.yohoufo.order.service.cache.CacheCleaner;
|
|
|
import com.yohoufo.order.service.cache.CacheKeyBuilder;
|
|
|
import com.yohoufo.order.service.proxy.InBoxFacade;
|
|
|
import com.yohoufo.order.service.proxy.ProductProxyService;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -74,6 +77,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
@Autowired
|
|
|
InBoxFacade inBoxFacade;
|
|
|
|
|
|
@Autowired
|
|
|
private CacheCleaner cacheCleaner;
|
|
|
|
|
|
//private static String EXPRESS_MQ_SEND = "logistics.logistics_data";
|
|
|
private static String EXPRESS_MQ_SEND = "order.updateChangeRefundOrderExpressInfo";
|
|
|
|
...
|
...
|
@@ -101,9 +107,9 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
LOGGER.warn("deliverToDepot getOrderInfo order not exist, orderCode is {}", orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
}
|
|
|
|
|
|
int buyerUid;
|
|
|
//获取skup
|
|
|
BuyerOrderGoods buyerOrderGoods= buyerOrderGoodsMapper.selectByOrderCode(buyerOrder.getUid(),orderCode);
|
|
|
BuyerOrderGoods buyerOrderGoods= buyerOrderGoodsMapper.selectByOrderCode(buyerUid=buyerOrder.getUid(),orderCode);
|
|
|
if(buyerOrderGoods==null){
|
|
|
LOGGER.warn("deliverToDepot buyerOrderGoods order not exist, orderCode is {}", orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
...
|
...
|
@@ -132,9 +138,10 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
|
|
|
|
|
|
//
|
|
|
SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
|
|
|
|
|
|
|
|
|
cacheCleaner.delete(Arrays.asList(CacheKeyBuilder.orderListKey(sellerUid, TabType.SELL.getValue()),
|
|
|
CacheKeyBuilder.orderListKey(buyerUid, TabType.BUY.getValue()),
|
|
|
CacheKeyBuilder.orderDetailKey(sellerUid, TabType.SELL.getValue(), orderCode),
|
|
|
CacheKeyBuilder.orderDetailKey(buyerUid,TabType.BUY.getValue(), orderCode)));
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
|