From 877b2519157cea762b1e63e9c57c09614216d684 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期四, 24 七月 2025 19:27:46 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/model/command/ShuttleCommand.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/core/model/command/ShuttleCommand.java b/src/main/java/com/zy/core/model/command/ShuttleCommand.java index a0c8b22..8e420f9 100644 --- a/src/main/java/com/zy/core/model/command/ShuttleCommand.java +++ b/src/main/java/com/zy/core/model/command/ShuttleCommand.java @@ -3,6 +3,8 @@ import com.zy.common.model.NavigateNode; import com.zy.core.enums.ShuttleCommandModeType; import lombok.Data; + +import java.util.ArrayList; import java.util.List; /** @@ -50,7 +52,18 @@ if (this.mode == null) { return null; } - return ShuttleCommandModeType.get(this.mode).desc; } + + public List<NavigateNode> getNodesDeepCopy() { + if (this.nodes == null) { + return null; + } + List<NavigateNode> navigateNodes = new ArrayList<>(); + for (NavigateNode node : nodes) { + navigateNodes.add(node.clone()); + } + return navigateNodes; + } + } -- Gitblit v1.9.1