|
@@ -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不存在");
|
|
|
}
|
|
|
}
|