From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 03 四月 2025 14:35:02 +0800
Subject: [PATCH] 添加非密字段显示

---
 Source/BladeX-Tool/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java b/Source/BladeX-Tool/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java
new file mode 100644
index 0000000..8c98b5e
--- /dev/null
+++ b/Source/BladeX-Tool/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java
@@ -0,0 +1,33 @@
+package org.springblade.core.tool.node;
+
+import org.springblade.core.tool.jackson.JsonUtil;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by Blade.
+ *
+ * @author smallchill
+ */
+public class NodeTest {
+
+	public static void main(String[] args) {
+		List<ForestNode> list = new ArrayList<>();
+		list.add(new ForestNode(1L, 0L, "1"));
+		list.add(new ForestNode(2L, 0L, "2"));
+		list.add(new ForestNode(3L, 1L, "3"));
+		list.add(new ForestNode(4L, 2L, "4"));
+		list.add(new ForestNode(5L, 3L, "5"));
+		list.add(new ForestNode(6L, 4L, "6"));
+		list.add(new ForestNode(7L, 3L, "7"));
+		list.add(new ForestNode(8L, 5L, "8"));
+		list.add(new ForestNode(9L, 6L, "9"));
+		list.add(new ForestNode(10L, 9L, "10"));
+		List<ForestNode> tns = ForestNodeMerger.merge(list);
+		tns.forEach(node ->
+			System.out.println(JsonUtil.toJson(node))
+		);
+	}
+
+}

--
Gitblit v1.9.3