From a0424a0cf60f5ae5a71e25b54f0ee6deef206d2c Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Fri, 10 May 2024 14:22:50 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/trunkline/service/impl/OpenOrderServiceImpl.java | 5 ++--- .../service/impl/TrunklineBillladingServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 860a4cdae..84905bcf5 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 @@ -2759,7 +2759,6 @@ public class OpenOrderServiceImpl implements IOpenOrderService { @Override public R abolishWaybill(List waybillIds, Long warehouseId, String warehouseName, String abolishReson) { List waybillList = warehouseWaybillClient.findListByWaybillIds(waybillIds); - List waybillEntities = warehouseWaybillClient.findListByWaybillIds(waybillIds); waybillList.forEach(waybillEntity -> { String waybillNo = waybillEntity.getWaybillNo(); String waybillStatus = waybillEntity.getWaybillStatus(); @@ -2781,7 +2780,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService { waybillEntity.setAbolishUserName(AuthUtil.getNickName()); waybillEntity.setAbolishTime(new Date()); }); - warehouseWaybillClient.updateList(waybillEntities); + warehouseWaybillClient.updateList(waybillList); //把装了车的包件取消装车 List carsLoadScanIds = trunklineCarsLoadScanService.findCarsLoadScanIdsByWaybillIds(waybillIds); @@ -2809,7 +2808,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService { distributionParcelListClient.clearParceListWaybillByAdvanceIds(advanceIds); } - waybillEntities.forEach(waybillEntity -> { + waybillList.forEach(waybillEntity -> { String createOperationRemark = "作废运单" + waybillEntity.getWaybillNo() + ",时间:" + CommonUtil.dateToString(new Date()); openOrderAsyncService.saveLog(waybillEntity.getId(), waybillEntity.getWaybillNo(), "1000", "作废运单", createOperationRemark+" 原因:"+abolishReson, AuthUtil.getNickName(), AuthUtil.getUserId(), warehouseId, warehouseName); }); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java index 63f930fb2..1a65fe666 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineBillladingServiceImpl.java @@ -74,7 +74,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl