|
@@ -137,7 +137,7 @@ public class KgFacade extends KgServiceImpl {
|
|
Tree treeObj = JSONUtil.toBean(tree, Tree.class);
|
|
Tree treeObj = JSONUtil.toBean(tree, Tree.class);
|
|
if (null != treeObj) {
|
|
if (null != treeObj) {
|
|
// 使用 AtomicLong 来生成唯一ID
|
|
// 使用 AtomicLong 来生成唯一ID
|
|
- AtomicLong idGenerator = new AtomicLong(1);
|
|
|
|
|
|
+ AtomicLong idGenerator = new AtomicLong(0);
|
|
|
|
|
|
// 存储父节点的完整路径到ID的映射
|
|
// 存储父节点的完整路径到ID的映射
|
|
Map<String, Long> pathIdMap = new HashMap<>();
|
|
Map<String, Long> pathIdMap = new HashMap<>();
|