From 01ecb2f1a57fd53f300f6a5447eb9f8b568017a5 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Thu, 25 Jul 2024 14:29:57 +0800 Subject: [PATCH] =?UTF-8?q?1.bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/TrunklineBillladingServiceImpl.java | 2 +- .../service/impl/TrunklineCarsLoadServiceImpl.java | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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 7ea4463a4..c5d13170e 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 @@ -692,7 +692,7 @@ public class TrunklineBillladingServiceImpl extends BaseServiceImpl 0) { log.warn("#############cancelArriveCarByLoadId: 当前节点已卸车 unloadNumber={}", unloadNumber); throw new CustomerException(400, "当前节点已卸车"); } + if(realLoadingNumber > 0){ + log.warn("#############cancelArriveCarByLoadId: 当前节点已做装车,不能取消到车 realLoadingNumber={}", realLoadingNumber); + throw new CustomerException(400, "当前节点已做装车,不能取消到车"); + } + + if(planLoadingNumber > 0){ + log.warn("#############cancelArriveCarByLoadId: 当前节点已做计划,不能取消到车 planLoadingNumber={}", planLoadingNumber); + throw new CustomerException(400, "当前节点已做计划,不能取消到车"); + } + TrunklineCarsLoadLineEntity startCarsLoadLineEntity = trunklineCarsLoadLineService.findStartNodeByLoadId(loadId); if (Objects.isNull(startCarsLoadLineEntity)) { log.warn("#############cancelArriveCarByLoadId: 起始节点信息不存在 loadId={}", loadId);