diff --git a/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomFactoryOrderListener.java b/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomFactoryOrderListener.java index 48fe3c9c1..08b8f8e6a 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomFactoryOrderListener.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomFactoryOrderListener.java @@ -197,7 +197,7 @@ public class ZbomFactoryOrderListener { advanceEntity.setWaybillNo(""); advanceEntity.setTrainNumber(zbReceiptDTO.getDepartCode()); advanceEntity.setFreezeStatus("0"); - advanceEntity.setLegacyStatus("0"); + advanceEntity.setSenderFactory(zbReceiptDTO.getSenderName()); List packageList = new ArrayList<>(); for (OrderPackageDTO orderPackageDTO : value) { @@ -210,12 +210,18 @@ public class ZbomFactoryOrderListener { advanceEntity.setConsigneePerson(orderPackageDTO.getReceiverName()); advanceEntity.setConsigneeMobile(orderPackageDTO.getReceiverMobile()); advanceEntity.setConsigneeAddress(orderPackageDTO.getReceiverAddress()); + // 封装包件 TrunklineAdvanceDetailEntity advanceDetailEntity = new TrunklineAdvanceDetailEntity(); advanceDetailEntity.setWarehouseId(startWarehouseId); advanceDetailEntity.setWarehouseName(startWarehouseName); // advanceDetailEntity.setIncomingWarehouseId(0L); // advanceDetailEntity.setIncomingWarehouseName(""); + // 根据志邦的一流单标识赋值 + advanceEntity.setLegacyStatus("0"); + if(ObjectUtil.equal(orderPackageDTO.getLegacyFlag(),"Y")){ + advanceEntity.setLegacyStatus("1"); + } advanceDetailEntity.setOrderCode(orderPackageDTO.getPlatformOrderCode()); advanceDetailEntity.setBrand(zbReceiptDTO.getSenderName());