fix[project]: 修改hasTaskNodeInChildren方法

This commit is contained in:
2026-03-22 10:59:46 +08:00
parent add31723b6
commit 5e1a29831e

View File

@@ -657,7 +657,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
// 遍历当前节点的直接子节点 // 遍历当前节点的直接子节点
for (NodeAllBase child : node.getChildren()) { for (NodeAllBase child : node.getChildren()) {
// 1. 当前子节点的type是task → 直接返回true // 1. 当前子节点的type是task → 直接返回true
if ("task".equals(child.getNodeType())) { if (NodeTypeEnum.TASK.getValue().equals(child.getNodeType())) {
return true; return true;
} }
// 2. 递归检查当前子节点的子节点 → 如果存在task返回true // 2. 递归检查当前子节点的子节点 → 如果存在task返回true