fix
Helius
2022-08-10 7e6145c0904a36523ef08c3d802614535e1b31eb
fix
2 files modified
8 ■■■■ changed files
src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java 6 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/ReleaseServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java
@@ -161,14 +161,12 @@
        if ("column".equals(type)){
            Long id = (Long) data.get("id");
            ColumnEntity columnEntity = columnMapper.selectById(id);
            data.put("title", columnEntity.getColumnName() + "_" + globalSetting.get("title"));
            globalSetting.put("title", columnEntity.getColumnName() + "_" + globalSetting.get("title"));
        } else if ("article".equals(type)) {
            Long id = (Long) data.get("id");
            ArticleEntity article = articleMapper.selectById(id);
            ColumnEntity columnEntity = columnMapper.selectById(article.getColumnId());
            data.put("title", article.getTitle() + "_" + columnEntity.getColumnName() +"_" + globalSetting.get("title"));
        } else {
            data.put("title", globalSetting.get("title"));
            globalSetting.put("title", article.getTitle() + "_" + columnEntity.getColumnName() +"_" + globalSetting.get("title"));
        }
        data.putAll(globalSetting);
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/ReleaseServiceImpl.java
@@ -62,6 +62,7 @@
        ArticleEntity article = articleMapper.selectById(id);
        ColumnEntity column = columnMapper.selectById(article.getColumnId());
        AppContants.EXECUTOR.execute(() -> {
        Long beforeColumnId = article.getBeforeColumnId();
        article.setBeforeColumnId(-1L);
        articleMapper.updateById(article);
@@ -87,6 +88,7 @@
        }
        this.releaseIndex(companyId, false);
        });
    }
    @Override