|
|
|
@ -1540,13 +1540,7 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
log.info("###########saveOrderPackage: 包条已存在,不同步 unitNo={}",unitNo); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
String productName = null; |
|
|
|
|
if(!Objects.isNull(inventoryId)){ |
|
|
|
|
InventoryDetailEntity inventoryDetailEntity = inventoryDetailClient.findUnitNoIsExist(unitNo,inventoryId); |
|
|
|
|
if(!Objects.isNull(inventoryDetailEntity)){ |
|
|
|
|
productName = inventoryDetailEntity.getProductname(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer status = orderDetailEntity.getStatus(); |
|
|
|
|
Integer carsType = orderDetailEntity.getCarsType(); |
|
|
|
@ -1589,21 +1583,37 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService {
|
|
|
|
|
// if(3==carsType||4 == carsType){
|
|
|
|
|
// entity.setOrderPackageStatus(OrderPackageStatusConstant.yichuku.getValue());
|
|
|
|
|
// }
|
|
|
|
|
if(2 == signState){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
|
|
|
|
|
String productName = null; |
|
|
|
|
if(!Objects.isNull(inventoryId)){ |
|
|
|
|
InventoryDetailEntity inventoryDetailEntity = inventoryDetailClient.findUnitNoIsExist(unitNo,inventoryId); |
|
|
|
|
if(!Objects.isNull(inventoryDetailEntity)){ |
|
|
|
|
productName = inventoryDetailEntity.getProductname(); |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
} |
|
|
|
|
entity.setIsTransfer(0); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.zhongzhuanruku.getValue()); |
|
|
|
|
if(!Objects.isNull(waybillEntity)){ |
|
|
|
|
String warehouseName = waybillEntity.getWarehouseName();//目的仓
|
|
|
|
|
BasicdataWarehouseEntity endhouse = basicdataWarehouseClient.findByName(warehouseName); |
|
|
|
|
Long endWarehouseId = endhouse.getId(); |
|
|
|
|
if(endWarehouseId.equals(warehouseId)){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
if(2 == signState){ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiqianshou.getValue()); |
|
|
|
|
entity.setIsTransfer(0); |
|
|
|
|
}else{ |
|
|
|
|
entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); |
|
|
|
|
if(!Objects.isNull(waybillEntity)){ |
|
|
|
|
String warehouseName = waybillEntity.getWarehouseName();//目的仓
|
|
|
|
|
BasicdataWarehouseEntity endhouse = basicdataWarehouseClient.findByName(warehouseName); |
|
|
|
|
Long endWarehouseId = endhouse.getId(); |
|
|
|
|
if(endWarehouseId.equals(warehouseId)){ |
|
|
|
|
entity.setIsTransfer(0); |
|
|
|
|
}else{ |
|
|
|
|
entity.setIsTransfer(1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
entity.setOrderPackageFreezeStatus(OrderPackageFreezeStatusConstant.weidongjie.getValue()); |
|
|
|
|
entity.setOrderPackageReservationStatus(OrderPackageReservationStatusConstant.daiyuyue.getValue()); |
|
|
|
|
entity.setOrderPackageGroundingStatus(OrderPackageGroundingStatusConstant.daishangjia.getValue()); |
|
|
|
|