|
|
|
@ -1389,6 +1389,18 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
Integer signState = orderDetailEntity.getSignState(); |
|
|
|
|
waybillNo = orderDetailEntity.getWaybillNo(); |
|
|
|
|
Date rukuTime = orderDetailEntity.getCreateTime(); |
|
|
|
|
if(StringUtil.isBlank(waybillNo)){ |
|
|
|
|
Integer advanceId = orderDetailEntity.getAdvanceId(); |
|
|
|
|
AdvanceEntity advanceEntity = advanceClient.fingById(advanceId); |
|
|
|
|
if (!Objects.isNull(advanceEntity)) { |
|
|
|
|
waybillNo = advanceEntity.getWaybillNo(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("##########waybillNo: waybillNo={} ",waybillNo); |
|
|
|
|
if(waybillNo.contains(",")){ |
|
|
|
|
waybillNo = waybillNo.replaceAll(",", ""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//存入运单信息
|
|
|
|
|
WayBillEntity waybillEntity = saveWaybillEntity(waybillNo); |
|
|
|
@ -1414,15 +1426,17 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
if(2 == signState){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
}else{ |
|
|
|
|
String warehouseName = waybillEntity.getWarehouseName();//目的仓
|
|
|
|
|
BasicdataWarehouseEntity endhouse = basicdataWarehouseClient.findByName(warehouseName); |
|
|
|
|
Long endWarehouseId = endhouse.getId(); |
|
|
|
|
Long warehouseId = distributionStockArticleEntity.getWarehouseId(); |
|
|
|
|
|
|
|
|
|
if(endWarehouseId.equals(warehouseId)){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.zhongzhuanruku.getValue()); |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.zhongzhuanruku.getValue()); |
|
|
|
|
if(!Objects.isNull(waybillEntity)){ |
|
|
|
|
String warehouseName = waybillEntity.getWarehouseName();//目的仓
|
|
|
|
|
BasicdataWarehouseEntity endhouse = basicdataWarehouseClient.findByName(warehouseName); |
|
|
|
|
Long endWarehouseId = endhouse.getId(); |
|
|
|
|
Long warehouseId = distributionStockArticleEntity.getWarehouseId(); |
|
|
|
|
if(endWarehouseId.equals(warehouseId)){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.zhongzhuanruku.getValue()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
entity.setOrderPackageFreezeStatus(OrderPackageFreezeStatusConstant.weidongjie.getValue()); |
|
|
|
|