diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml index 684861a99..8b06066d3 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataStorageServicesMapper.xml @@ -55,6 +55,7 @@ select * from logpm_basicdata_storage_services where send_warehouse_id is null + and is_deleted = 0 and client_id = #{clientId} diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java index 055446f11..cada3be3d 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java @@ -2797,7 +2797,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService { String consigneeName = waybillEntity.getConsigneeName(); String consigneeAddress = waybillEntity.getConsigneeAddress(); String consigneeMobile = waybillEntity.getConsigneeMobile(); + Long newDepartureWarehouseId = waybillEntity.getDepartureWarehouseId(); String departureWarehouseName = waybillEntity.getDepartureWarehouseName(); + Long newDestinationWarehouseId = waybillEntity.getDestinationWarehouseId(); String destinationWarehouseName = waybillEntity.getDestinationWarehouseName(); Integer totalCount = waybillEntity.getTotalCount(); @@ -2834,12 +2836,12 @@ public class OpenOrderServiceImpl implements IOpenOrderService { Long nowWarehouseId = parcelListEntity.getWarehouseId(); String orderPackageCode = parcelListEntity.getOrderPackageCode(); String orderPackageStatus = parcelListEntity.getOrderPackageStatus(); - parcelListEntity.setSendWarehouseId(departureWarehouseId); + parcelListEntity.setSendWarehouseId(newDepartureWarehouseId); parcelListEntity.setSendWarehouseName(departureWarehouseName); - parcelListEntity.setAcceptWarehouseId(destinationWarehouseId); + parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); parcelListEntity.setAcceptWarehouseName(destinationWarehouseName); - if (nowWarehouseId.equals(destinationWarehouseId)) { + if (nowWarehouseId.equals(newDestinationWarehouseId)) { parcelListEntity.setIsTransfer(0); if ("20".equals(orderPackageStatus)) { arriveWarehousePackageCode.add(orderPackageCode); @@ -2913,9 +2915,9 @@ public class OpenOrderServiceImpl implements IOpenOrderService { stockArticleEntity.setConsigneePerson(consigneeName); stockArticleEntity.setConsigneeAddress(consigneeAddress); stockArticleEntity.setConsigneeMobile(consigneeMobile); - stockArticleEntity.setSendWarehouseId(departureWarehouseId); + stockArticleEntity.setSendWarehouseId(newDepartureWarehouseId); stockArticleEntity.setSendWarehouseName(departureWarehouseName); - stockArticleEntity.setAcceptWarehouseId(destinationWarehouseId); + stockArticleEntity.setAcceptWarehouseId(newDestinationWarehouseId); stockArticleEntity.setAcceptWarehouseName(destinationWarehouseName); String orderCode = stockArticleEntity.getOrderCode(); if (orderCode.equals(waybillNo)) { @@ -2961,12 +2963,12 @@ public class OpenOrderServiceImpl implements IOpenOrderService { } updateNumberIds.add(id); } - parcelListEntity.setSendWarehouseId(departureWarehouseId); + parcelListEntity.setSendWarehouseId(newDepartureWarehouseId); parcelListEntity.setSendWarehouseName(departureWarehouseName); - parcelListEntity.setAcceptWarehouseId(destinationWarehouseId); + parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); parcelListEntity.setAcceptWarehouseName(destinationWarehouseName); - if (nowWarehouseId.equals(destinationWarehouseId)) { + if (nowWarehouseId.equals(newDestinationWarehouseId)) { parcelListEntity.setIsTransfer(0); } else { parcelListEntity.setIsTransfer(1); @@ -3015,11 +3017,11 @@ public class OpenOrderServiceImpl implements IOpenOrderService { entity.setIsZero("1"); entity.setAdvanceId(waybillDetailDTO.getId()); entity.setWarehouseEntryTimeEnd(new Date()); - entity.setSendWarehouseId(departureWarehouseId); + entity.setSendWarehouseId(newDepartureWarehouseId); entity.setSendWarehouseName(departureWarehouseName); - entity.setAcceptWarehouseId(destinationWarehouseId); + entity.setAcceptWarehouseId(newDestinationWarehouseId); entity.setAcceptWarehouseName(destinationWarehouseName); - if (departureWarehouseId.equals(destinationWarehouseId)) { + if (warehouseId1.equals(newDestinationWarehouseId)) { entity.setIsTransfer(0); } else { entity.setIsTransfer(1); @@ -5168,18 +5170,18 @@ public class OpenOrderServiceImpl implements IOpenOrderService { waybillEntity.setDestinationWarehouseId(newDestinationWarehouseId); waybillEntity.setDestinationWarehouseName(newDestinationWarehouseName); //查询所有该运单的包件 - List parcelListEntityList = distributionParcelListClient.findListByWaybillId(waybillId); - parcelListEntityList.forEach(parcelListEntity -> { - Long warehouseId = parcelListEntity.getWarehouseId(); - parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); - parcelListEntity.setAcceptWarehouseName(newDestinationWarehouseName); - if (warehouseId.equals(newDestinationWarehouseId)) { - parcelListEntity.setIsTransfer(0); - } else { - parcelListEntity.setIsTransfer(1); - } - }); - distributionParcelListClient.updateList(parcelListEntityList); +// List parcelListEntityList = distributionParcelListClient.findListByWaybillId(waybillId); +// parcelListEntityList.forEach(parcelListEntity -> { +// Long warehouseId = parcelListEntity.getWarehouseId(); +// parcelListEntity.setAcceptWarehouseId(newDestinationWarehouseId); +// parcelListEntity.setAcceptWarehouseName(newDestinationWarehouseName); +// if (warehouseId.equals(newDestinationWarehouseId)) { +// parcelListEntity.setIsTransfer(0); +// } else { +// parcelListEntity.setIsTransfer(1); +// } +// }); +// distributionParcelListClient.updateList(parcelListEntityList); } Long newShipperId = openOrderDTO.getShipperId(); String newShipper = openOrderDTO.getShipper(); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java index c4c43f5f9..1b0c45f6f 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java @@ -10850,6 +10850,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl