xiaoyong931011
2022-07-07 54dce1d981e13cd177bd3e0bb1f335f31fd3429b
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/ReleaseServiceImpl.java
@@ -35,7 +35,7 @@
        ArticleEntity article = articleMapper.selectById(id);
        ColumnEntity column = columnMapper.selectById(article.getColumnId());
        cmsCoreService.articleProcess(article.getId(), column.getArticleTemplate());
        cmsCoreService.articleProcess(article.getId(), column.getArticleTemplate(), column.getPath());
    }
    @Override
@@ -44,7 +44,19 @@
        Map<String, Object> map = new HashMap<>();
        map.put("id", columnEntity.getId());
        map.put("code", columnEntity.getColumnCode());
        if (columnEntity.getParentId() == 0L) {
            map.put("parentCode", columnEntity.getColumnCode());
        } else {
            ColumnEntity parent = columnMapper.selectById(columnEntity.getParentId());
            map.put("parentCode", parent.getColumnCode());
        }
        map.put("templatePath", columnEntity.getPath());
        cmsCoreService.columnProcess(map, columnEntity.getListTemplate(), article);
    }
    @Override
    public void releaseIndex() {
        Map<String, Object> map = new HashMap<>();
        cmsCoreService.indexProcess(map, null);
    }
}