Browse Source

1.修复同步数据bug

dist.1.3.0
zhenghaoyu 6 months ago
parent
commit
3457368509
  1. 14
      blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java

14
blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java

@ -1443,7 +1443,7 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
String waybillNo = entity.getWaybillNo();
if(StringUtil.isNotBlank(waybillNo)){
WayBillEntity wb = wayBillClient.getByWaybillNo(waybillNo);
if(Objects.isNull(wb)){
if(!Objects.isNull(wb)){
Integer oWid = wb.getWarehouseId();
if(oldWarehouseId.equals(oWid)){
advanceEntity = entity;
@ -1454,7 +1454,19 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
}
}
if(Objects.isNull(advanceEntity)){
log.warn("#################saveOrderInfo: 暂存单信息不存在 orderCode={}",orderCode);
throw new CustomerException(403,"暂存单信息不存在");
}
Integer advanceId = advanceEntity.getId();
if(Objects.isNull(wayBillEntity)){
log.warn("#################saveOrderInfo: 暂存单暂未有运单信息 orderCode={}",orderCode);
throw new CustomerException(403,"暂存单暂未有运单信息");
}
//判断新系统是否有这条订单数据
DistributionStockArticleEntity distributionStockArticleEntity = distributionStockArticleClient.findStockArticleByOrderCodeAndWarehouseId(orderCode,newWarehouseId);

Loading…
Cancel
Save