|
|
|
@ -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(); |
|
|
|
|