|
|
|
@ -447,6 +447,8 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
// todo 这里需要去查询门店 和新系统的门店ID 进行绑定
|
|
|
|
|
|
|
|
|
|
String peisongType = getPeisongTypeByClientId(basicdataClientEntity.getId()); |
|
|
|
|
logger.info("订单同步peisongType{} ", peisongType); |
|
|
|
|
|
|
|
|
|
if (StringUtil.isNoneBlank(peisongType)) { |
|
|
|
|
distributionStockArticleEntity.setTypeService(peisongType); |
|
|
|
|
} |
|
|
|
@ -596,9 +598,12 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService {
|
|
|
|
|
} |
|
|
|
|
//通过运单号先去查询新系统是否存在这个运单号
|
|
|
|
|
WarehouseWaybillEntity warehouseWaybill = warehouseWaybillClient.findByWaybillNo(waybillNo); |
|
|
|
|
logger.info("#################handleDataToPlatform.warehouseWaybill: {}", warehouseWaybill); |
|
|
|
|
|
|
|
|
|
if (Objects.isNull(warehouseWaybill)) { |
|
|
|
|
//如果新系统中不存在这个运单,那么就去查询老系统的运单数据
|
|
|
|
|
WayBillEntity wayBillEntity = wayBillClient.getByWaybillNo(waybillNo); |
|
|
|
|
logger.info("#################handleDataToPlatform.wayBillEntity: {}", wayBillEntity); |
|
|
|
|
if (Objects.isNull(wayBillEntity)) { |
|
|
|
|
logger.warn("##############saveWaybillEntity: 老系统中未找到对应运单waybillNo={}", waybillNo); |
|
|
|
|
throw new CustomerException("老系统中未找到对应运单"); |
|
|
|
|