1、仿真执行中,只显示有任务的工位 bug fix
This commit is contained in:
@@ -621,16 +621,26 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
|
||||
return;
|
||||
}
|
||||
// 只显示有任务的工位
|
||||
Iterator<NodeAllBase> childrenNodeListIterator = children.iterator();
|
||||
Iterator<NodeAllBase> workspaceNodeListIterator = workspaceNodeList.iterator();
|
||||
while (workspaceNodeListIterator.hasNext()) {
|
||||
List<NodeAllBase> childrenNodeList = workspaceNodeListIterator.next().getChildren();
|
||||
NodeAllBase workspaceNode = workspaceNodeListIterator.next();
|
||||
List<NodeAllBase> childrenNodeList = workspaceNode.getChildren();
|
||||
if (CollectionUtils.isEmpty(childrenNodeList)) {
|
||||
workspaceNodeListIterator.remove();
|
||||
while (childrenNodeListIterator.hasNext()) {
|
||||
if (childrenNodeListIterator.next().getUuid().equals(workspaceNode.getUuid())) {
|
||||
childrenNodeListIterator.remove();
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
List<NodeAllBase> taskNodeList = childrenNodeList.stream().filter(node -> NodeTypeEnum.TASK.getValue().equals(node.getNodeType())).toList();
|
||||
if (CollectionUtils.isEmpty(taskNodeList)) {
|
||||
workspaceNodeListIterator.remove();
|
||||
while (childrenNodeListIterator.hasNext()) {
|
||||
if (childrenNodeListIterator.next().getUuid().equals(workspaceNode.getUuid())) {
|
||||
childrenNodeListIterator.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 对工位进行排序,-M工位顺序排第一个
|
||||
|
||||
Reference in New Issue
Block a user