Merge branch 'feature/REQ-1507' of axzsource.com:universal/infrastructure/backend/msg-center-plat into dev
This commit is contained in:
commit
cf8e9a5cfc
@ -97,9 +97,8 @@ public class MessageGroupTreeNodeCacheServiceImpl implements MessageGroupTreeNod
|
||||
LinkedList<GroupTreeNodeDTO> queue = new LinkedList<>(root.getNodeChildren());
|
||||
while (!queue.isEmpty()) {
|
||||
GroupTreeNodeDTO node = queue.pop();
|
||||
Optional<GroupTreeNodeDTO> childOp = node.getChild(treeNodeCode);
|
||||
if (childOp.isPresent()) {
|
||||
return childOp.get();
|
||||
if (Objects.equals(node.getNodeCode(), treeNodeCode)) {
|
||||
return node;
|
||||
}
|
||||
queue.addAll(node.getNodeChildren());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user