附加文章内容
This commit is contained in:
@@ -58,8 +58,10 @@ public class ArticleController extends BaseController {
|
|||||||
article.setActualViews(article.getActualViews() + 1);
|
article.setActualViews(article.getActualViews() + 1);
|
||||||
articleService.updateById(article);
|
articleService.updateById(article);
|
||||||
// 附加文字内容
|
// 附加文字内容
|
||||||
final ArticleContent content = articleContentService.getById(article.getArticleId());
|
if(article != null){
|
||||||
article.setContent(content.getContent());
|
ArticleContent content = articleContentService.getOne(new LambdaQueryWrapper<ArticleContent>().eq(ArticleContent::getArticleId,article.getArticleId()));
|
||||||
|
article.setContent(content.getContent());
|
||||||
|
}
|
||||||
return success(article);
|
return success(article);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user