|
|
@@ -84,6 +84,9 @@ public class LhbOrderServiceImpl extends MPJBaseServiceImpl<LhbOrderMapper, LhbO
|
|
|
}
|
|
|
QueryOrderReq req = QueryOrderReq.builder().orderId(order.getOutOrderSn()).build();
|
|
|
QueryLogisticsRes queryLogisticsRes = channelFactory.getChannel(order.getIfCode()).queryLogistics(req);
|
|
|
+ if(queryLogisticsRes == null){
|
|
|
+ throw new GlobalCustomerException("暂未查询到物流信息");
|
|
|
+ }
|
|
|
if(StrUtil.isNotBlank(queryLogisticsRes.getExpressNo())){
|
|
|
order.setExpressNo(queryLogisticsRes.getExpressNo());
|
|
|
order.updateById();
|