From 71726a1cb05790d6841595ef7daef5173f2cddfa Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 29 三月 2023 09:43:11 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/service/data/MetaService.java | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/lf/server/service/data/MetaService.java b/src/main/java/com/lf/server/service/data/MetaService.java index 4fa9325..0430656 100644 --- a/src/main/java/com/lf/server/service/data/MetaService.java +++ b/src/main/java/com/lf/server/service/data/MetaService.java @@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.File; import java.util.ArrayList; +import java.util.Collections; import java.util.List; /** @@ -164,6 +165,7 @@ List<String> list = getTabDeletes(metas, metas.get(0).getTab()); addCascadDeletes(list); addAttachDeletes(list); + Collections.reverse(list); return StringHelper.join(list, ";"); } @@ -197,12 +199,12 @@ int i = 0, c = list.size(); while (i < c) { String str = list.get(i); - if (str.contains("bs.m_pipelinepoint")) { - list.add(str.replace("bs.m_pipelinepoint", "bs.m_pipesegment")); - list.add(str.replace("bs.m_pipelinepoint", "bs.m_pipeline")); + if (str.contains("bs.m_pipelinepoint ")) { + list.add(str.replace("bs.m_pipelinepoint ", "bs.m_pipesegment ")); + list.add(str.replace("bs.m_pipelinepoint ", "bs.m_pipeline ")); } - if (str.contains("bs.s_explorationpoint")) { - list.add(str.replace("bs.s_explorationpoint", "bs.s_surveyworksite")); + if (str.contains("bs.s_explorationpoint ")) { + list.add(str.replace("bs.s_explorationpoint ", "bs.s_surveyworksite ")); } i++; -- Gitblit v1.9.3