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