Helius
2022-07-11 0903e8d64010f6ab7a0e44c6d2d58c5669763d46
src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/ArticleServiceImpl.java
@@ -182,7 +182,7 @@
            return Result.fail("请选择文章栏目");
        }
        if (articleEntity.getColumnId().equals(columnId) && articleEntity.getReleaseStatus() == 1) {
        if (!articleEntity.getColumnId().equals(columnId) && articleEntity.getBeforeColumnId() != null) {
            articleEntity.setBeforeColumnId(articleEntity.getColumnId());
        }
        articleEntity.setColumnId(columnId);
@@ -207,7 +207,7 @@
        articleEntity.setArticleUrl(adminUpdateArticleDto.getArticleUrl());
        articleEntity.setType(adminUpdateArticleDto.getType());
        articleEntity.setContentType(adminUpdateArticleDto.getContentType());
        articleEntity.setReleaseStatus(0);
        articleEntity.setReleaseStatus(ArticleEntity.RELEASE_STATUS_NO);
        String authorBelong = adminUpdateArticleDto.getAuthorBelong();
        articleEntity.setAuthorBelong(authorBelong);
@@ -302,6 +302,7 @@
            return Result.fail("文章不存在");
        }
        articleEntity.setReleaseStatus(ArticleEntity.RELEASE_STATUS_YES);
        articleEntity.setBeforeColumnId(null);
        this.baseMapper.updateById(articleEntity);
        releaseService.releaseArticle(articleEntity.getId(), companyId);