1
0

2 Коммиты 442f375d6d ... 59690baf31

Автор SHA1 Сообщение Дата
  huangtf 59690baf31 Merge branch 'master' of http://39.108.216.210:3000/zhuwei/bladex 4 месяцев назад
  huangtf 1494156ba4 增加容错 4 месяцев назад

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

@@ -85,9 +85,13 @@ public class ArchiveTreeContractSyncImpl {
         ArchiveTreeContractVO2 dstTree = ForestNodeMergerEx.getSubTree(dstTrees, dstNodeId);
         List<ArchiveTreeContractVO2> addDst = new ArrayList<>();
 
+        if (srcTree == null) {
+            return saveList;
+        };
         ForestNodeMergerEx.syncTreeList(srcTree, dstTree, addDst);
 
 
+
         List<ArchiveTreeContractVO2> archiveTreeContractVO2s = new ArrayList<>();
         //取出指定范围
 
@@ -131,6 +135,9 @@ public class ArchiveTreeContractSyncImpl {
         Long srcNodeId = dstTree.getFromId();
         Long newNodeId = dstTree.getId();
         ArchiveTreeVO2 subTree = ForestNodeMergerEx.getSubTree(srcTree, srcNodeId);
+        if (subTree == null) {
+            return saveList;
+        }
 
         arTreeContractInitService.copyContractTree(dstNode.getTenantId(), dstNode.getProjectId()
                     , contractInfo, newNodeId, subTree.getChildren(), saveList, null);