管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-04-03 05b7f36c1fdb1dae4fd2131f63e10f72f85ee42c
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;
/**
@@ -118,6 +119,13 @@
    }
    @Override
    public List<MetaEntity> selectMetasByDirCode(String dircode) {
        dircode = StringHelper.getRightLike(dircode);
        return metaMapper.selectMetasByDirCode(dircode);
    }
    @Override
    public Integer insert(MetaEntity entity) {
        return metaMapper.insert(entity);
    }
@@ -164,6 +172,7 @@
        List<String> list = getTabDeletes(metas, metas.get(0).getTab());
        addCascadDeletes(list);
        addAttachDeletes(list);
        Collections.reverse(list);
        return StringHelper.join(list, ";");
    }
@@ -197,12 +206,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++;