소스 검색

同步公共-只有同步清表才去修复数据

LHB 2 달 전
부모
커밋
97d3a195cd
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsSynchronousServiceImpl.java

+ 3 - 3
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsSynchronousServiceImpl.java

@@ -306,7 +306,7 @@ public class WbsSynchronousServiceImpl {
                 List<WbsTreePrivate> editPrivateNodes = new ArrayList<>();
                 for (WbsTreePrivate templateNode : templateNodes) {
                     //数据修复-----------------------------------------------------------------------------------------------------------------------------------开始
-                    if (!isPublic && templateNode.getType() == 2) {
+                    if (!isPublic && templateNode.getType() == 2 && collect.contains(2)) {
                         boolean isUpdate = false;
                         if (templateNode.getExcelId() != null) {
                             ExcelTab excelTab = excelTabMapper.selectOne(Wrappers.<ExcelTab>lambdaQuery()
@@ -362,7 +362,7 @@ public class WbsSynchronousServiceImpl {
                                 if (CollectionUtil.isNotEmpty(list)) {
                                     templateNode.setHtmlUrl(list.get(0).getHtmlUrl());
                                     isUpdate = true;
-                                }else{
+                                } else {
                                     throw new ServerException(templateNode.getNodeName() + " html不存在");
                                 }
                             }
@@ -375,7 +375,7 @@ public class WbsSynchronousServiceImpl {
                                 templateNode.setExcelId(templateNode.getExcelId() == null ? list.get(0).getExcelId() : templateNode.getExcelId());
                                 templateNode.setInitTableName(templateNode.getInitTableName() == null ? list.get(0).getInitTableName() : templateNode.getInitTableName());
                                 isUpdate = true;
-                            }else{
+                            } else {
                                 throw new ServerException(templateNode.getNodeName() + " html不存在");
                             }
                         }