Prechádzať zdrojové kódy

同步节点的层级

huangtf 6 dní pred
rodič
commit
b050a77da9

+ 1 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ArchiveTreeContractSyncImpl.java

@@ -480,7 +480,7 @@ public class ArchiveTreeContractSyncImpl {
         Map<Long,Long> archiveTreeContractIdMap = new LinkedHashMap<>();
 
         for (ArchiveTreeContract node : associatedNodes) {
-            Integer nodeLevel = Integer.valueOf(associatedNodes.get(0).getDisplayHierarchy());
+            Integer nodeLevel = Integer.valueOf(node.getDisplayHierarchy());
 
             log.info("同步文件  syncNode"+ nodeLevel + " " + node.getId() + " " +  node.getNodeName());
             if (nodeLevel == 0) {