Browse Source

feat(all): 干线开单

1 修改干线开单时发送消息包含运单发站到站信息
dev
zhaoqiaobo 2 months ago
parent
commit
8c84cbd2c3
  1. 11
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineWaybillPackageServiceImpl.java

11
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineWaybillPackageServiceImpl.java

@ -76,12 +76,14 @@ public class TrunklineWaybillPackageServiceImpl extends BaseServiceImpl<Trunklin
List<String> orderPackageCodes = new ArrayList<>();
List<TrunklineWaybillPackageEntity> ls = new ArrayList<>();
String nowWarehouseName = null;
for (TrunklineAdvanceDetailVO trunklineAdvanceDetailVO : list) {
Long advanceDetailId = trunklineAdvanceDetailVO.getId();
Long advanceId = trunklineAdvanceDetailVO.getAdvanceId();
String orderCode = trunklineAdvanceDetailVO.getOrderCode();
String orderPackageCode = trunklineAdvanceDetailVO.getOrderPackageCode();
String packageStatus = trunklineAdvanceDetailVO.getPackageStatus();
nowWarehouseName = trunklineAdvanceDetailVO.getWarehouseName();
TrunklineWaybillPackageEntity waybillPackageEntity = new TrunklineWaybillPackageEntity();
waybillPackageEntity.setWaybillId(waybillId);
waybillPackageEntity.setWaybillNo(waybillNo);
@ -128,6 +130,9 @@ public class TrunklineWaybillPackageServiceImpl extends BaseServiceImpl<Trunklin
jsonObject.put("totalCount",totalCount);
jsonObject.put("totalPrice", "0");
jsonObject.put("waybillNo", waybillNo);
jsonObject.put("departureWarehouseName", departureWarehouseName);
jsonObject.put("destinationWarehouseName", destinationWarehouseName);
String finalNowWarehouseName = nowWarehouseName;
NodePushMsg msg = NodePushMsg.builder()
.operator(AuthUtil.getNickName())
.operatorTime(new Date())
@ -135,12 +140,14 @@ public class TrunklineWaybillPackageServiceImpl extends BaseServiceImpl<Trunklin
.node(WorkNodeEnums.OPEN_ORDER)
.startWarehouse(departureWarehouseName)
.endWarehouse(destinationWarehouseName)
.warehouse(departureWarehouseName)
.warehouse(finalNowWarehouseName)
.main(jsonObject)
.content(value.stream().map(data->{
return PushData.builder()
.packageCode(data.getOrderPackageCode())
.warehouseName(departureWarehouseName)
.waybillStartWarehouse(departureWarehouseName)
.destinationWarehouse(destinationWarehouseName)
.warehouseName(finalNowWarehouseName)
.orderCode(data.getOrderCode())
.waybillNumber(waybillNo)
.build();

Loading…
Cancel
Save