fix[project]: 修改hasTaskNodeInChildren方法
This commit is contained in:
@@ -657,7 +657,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
// 遍历当前节点的直接子节点
|
||||
for (NodeAllBase child : node.getChildren()) {
|
||||
// 1. 当前子节点的type是task → 直接返回true
|
||||
if ("task".equals(child.getNodeType())) {
|
||||
if (NodeTypeEnum.TASK.getValue().equals(child.getNodeType())) {
|
||||
return true;
|
||||
}
|
||||
// 2. 递归检查当前子节点的子节点 → 如果存在task,返回true
|
||||
|
||||
Reference in New Issue
Block a user