Helius
2022-08-09 5e132c7fa164107bc79853162425e32e82c25cb1
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/ReleaseServiceImpl.java
@@ -77,7 +77,7 @@
            releaseColumn(column.getParentId(), 1, companyId);
        }
        if (beforeColumnId != null && !article.getColumnId().equals(beforeColumnId)) {
        if (beforeColumnId != -1 && !article.getColumnId().equals(beforeColumnId)) {
            ColumnEntity beforeColumn = columnMapper.selectById(beforeColumnId);
            this.releaseColumn(beforeColumnId, 1, companyId);
            if (beforeColumn.getParentId() != 0L) {
@@ -159,8 +159,10 @@
                                }
                                if (article.getType() == 1) {
                                    map.put("id", article.getId());
                                    cmsCoreService.articleProcess(map, column.getArticleTemplate(), column.getPath());
                                    Map<String, Object> articleMap = new HashMap<>();
                                    BeanUtil.copyProperties(map, articleMap);
                                    articleMap.put("id", article.getId());
                                    cmsCoreService.articleProcess(articleMap, column.getArticleTemplate(), column.getPath());
                                }
                            }
                        }