From d7eccce91e009cfcb6a155ed8826d87cabdab288 Mon Sep 17 00:00:00 2001 From: haoxiaofei Date: Thu, 13 Oct 2022 16:12:37 +0800 Subject: [PATCH 1/3] =?UTF-8?q?style(vo-manager):=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit switch-case方法增加default --- .../vmmanager/helpconfig/HelpConfigFilterSortHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/helpconfig/HelpConfigFilterSortHandler.java b/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/helpconfig/HelpConfigFilterSortHandler.java index 6f6f0ae..15b3297 100644 --- a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/helpconfig/HelpConfigFilterSortHandler.java +++ b/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/helpconfig/HelpConfigFilterSortHandler.java @@ -116,6 +116,7 @@ public class HelpConfigFilterSortHandler { case SORT_CONDITION_PROPERTY: para.getActualValue().setValue(newSortCondition); break; + default: } }); } @@ -151,6 +152,7 @@ public class HelpConfigFilterSortHandler { case SORT_CONDITION_PROPERTY: para.getActualValue().setValue(newSortCondition); break; + default: } }); } -- Gitee From 05c09dcea24c2440ac74c66490531752d1f17c2a Mon Sep 17 00:00:00 2001 From: haoxiaofei Date: Thu, 13 Oct 2022 16:42:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style(vo-manager):=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除冗余注释代码 --- .../BffMetadataRtEventListener.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/metadataeventlistener/BffMetadataRtEventListener.java b/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/metadataeventlistener/BffMetadataRtEventListener.java index 8220181..cd29399 100644 --- a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/metadataeventlistener/BffMetadataRtEventListener.java +++ b/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/metadataeventlistener/BffMetadataRtEventListener.java @@ -48,26 +48,6 @@ public class BffMetadataRtEventListener implements IMetadataRtEventListener { } private static final Logger logger = LoggerFactory.getLogger(BffMetadataRtEventListener.class); @Override public void fireGeneratedMetadataSavedEvent(MetadataRtEventArgs args) { -// GspMetadata metadata=args.getMetadata(); -// if(metadata.getContent() instanceof GspBusinessEntity){ -// -// GspVoExtendInfoService service= SpringBeanUtils.getBean(GspVoExtendInfoService.class); -// -// CustomizationService customizationService=SpringBeanUtils.getBean(CustomizationService.class); -// -// GspBusinessEntity businessEntity= (GspBusinessEntity) metadata.getContent(); -// String beId=businessEntity.getId(); -// -// List voExtendInfos=service.getVoId(beId); -// if(voExtendInfos==null ||voExtendInfos.size()==0){ -// return; -// } -// ArrayList metadataLists=new ArrayList<>(); -// voExtendInfos.forEach(info -> metadataLists.add(info.getId())); -// -// customizationService.removeCacheByMetadataIds(metadataLists); -// -// } } @Override public void fireMetadataSavingEvent(MetadataRtEventArgs args) { -- Gitee From eab4c24e27e8ebd4983b82d8834b4d7063bad768 Mon Sep 17 00:00:00 2001 From: haoxiaofei Date: Thu, 13 Oct 2022 16:50:39 +0800 Subject: [PATCH 3/3] =?UTF-8?q?style(vo-manager):=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除冗余无效代码 --- .../service/SimplifyVoBeforeSavedToDB.java | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/service/SimplifyVoBeforeSavedToDB.java diff --git a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/service/SimplifyVoBeforeSavedToDB.java b/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/service/SimplifyVoBeforeSavedToDB.java deleted file mode 100644 index ce320e2..0000000 --- a/view-object-manager/src/main/java/com/inspur/edp/formserver/vmmanager/service/SimplifyVoBeforeSavedToDB.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright © OpenAtom Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.inspur.edp.formserver.vmmanager.service; - -/*import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.inspur.edp.lcm.metadata.api.entity.GspMetadata; -import com.inspur.edp.lcm.metadata.common.Utils; -import com.inspur.edp.metadata.rtcustomization.spi.MetadataBeforeSaveToDBExtend; -import com.inspur.edp.formserver.vmmanager.ContentSerializer; - -public class SimplifyVoBeforeSavedToDB implements MetadataBeforeSaveToDBExtend { - - public String execute(GspMetadata gspMetadata){ - ContentSerializer serializer = new ContentSerializer(); - JsonNode jsonNode = serializer.Serialize(gspMetadata.getContent()); - ObjectMapper mapper = Utils.getMapper(); - String mdValue; - try { - mdValue = mapper.writeValueAsString(jsonNode); - }catch (JsonProcessingException e){ - throw new RuntimeException("序列化失败,元数据id:"+gspMetadata.getHeader().getId()); - } - return mdValue; - } - -}*/ -- Gitee