|
|
|
@ -392,15 +392,15 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
takeCompany = supplyData.get("takeCompany"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
OrderDetailEntity orderDetailEntity = orderDetailClient.findByUnitNo(unitNo); |
|
|
|
|
if(Objects.isNull(orderDetailEntity)){ |
|
|
|
|
logger.warn("############handleDataToPlatform: 包条信息不存在 unitNo={}",unitNo); |
|
|
|
|
throw new CustomerException(405, "包条信息不存在"); |
|
|
|
|
} |
|
|
|
|
Integer oldId = orderDetailEntity.getNowWarehouseId(); |
|
|
|
|
// OrderDetailEntity orderDetailEntity = orderDetailClient.findByUnitNo(unitNo);
|
|
|
|
|
// if(Objects.isNull(orderDetailEntity)){
|
|
|
|
|
// logger.warn("############handleDataToPlatform: 包条信息不存在 unitNo={}",unitNo);
|
|
|
|
|
// throw new CustomerException(405, "包条信息不存在");
|
|
|
|
|
// }
|
|
|
|
|
// Integer oldId = orderDetailEntity.getNowWarehouseId();
|
|
|
|
|
|
|
|
|
|
// 查询数据对应的仓库名称
|
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.getWarehouseByOldId(oldId); |
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.findByName(destinationWarehouse); |
|
|
|
|
if(Objects.isNull(basicdataWarehouseEntity)){ |
|
|
|
|
logger.warn("############handleDataToPlatform: 仓库信息不存在 destinationWarehouse={}",destinationWarehouse); |
|
|
|
|
throw new CustomerException(405, "仓库信息不存在"); |
|
|
|
@ -558,7 +558,7 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//保存包件信息
|
|
|
|
|
saveOrderPackage(unitNo, distributionStockArticleEntity, basicdataWarehouseEntity, waybillNoNum,operationTime,oldId); |
|
|
|
|
saveOrderPackage(unitNo, distributionStockArticleEntity, basicdataWarehouseEntity, waybillNoNum,operationTime,basicdataWarehouseEntity.getOldId()); |
|
|
|
|
|
|
|
|
|
logger.info("#################handleDataToPlatform: 数据处理完成"); |
|
|
|
|
} else { |
|
|
|
|