Browse Source

feat(mq): 暂存单遗留状态

1 根据志邦的遗留状态给暂存单赋值
pull/7/head
zhaoqiaobo 10 months ago
parent
commit
6007abb9ed
  1. 8
      blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomFactoryOrderListener.java

8
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<JSONObject> 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());

Loading…
Cancel
Save