From b8f892fe8e0e9921514d485bcbdbac92a7eeaf6d Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 14 Dec 2021 11:09:49 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forest/service/impl/ArticleServiceImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/rymcu/forest/service/impl/ArticleServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/ArticleServiceImpl.java index 7012647..970bbf6 100644 --- a/src/main/java/com/rymcu/forest/service/impl/ArticleServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/ArticleServiceImpl.java @@ -61,7 +61,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti } else { list = articleMapper.selectArticles(searchDTO.getSearchText(), searchDTO.getTag(), searchDTO.getTopicUri()); } - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @@ -78,7 +78,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti @Override public List findArticlesByTopicUri(String name) { List list = articleMapper.selectArticlesByTopicUri(name); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @@ -90,7 +90,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti @Override public List findUserArticlesByIdUser(Integer idUser) { List list = articleMapper.selectUserArticles(idUser); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @@ -306,21 +306,21 @@ public class ArticleServiceImpl extends AbstractService
implements Arti throw new BaseApiException(ErrorCode.INVALID_TOKEN); } List list = articleMapper.selectDrafts(user.getIdUser()); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @Override public List findArticlesByIdPortfolio(Integer idPortfolio) { List list = articleMapper.selectArticlesByIdPortfolio(idPortfolio); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @Override public List selectUnbindArticles(Integer idPortfolio, String searchText, Integer idUser) { List list = articleMapper.selectUnbindArticlesByIdPortfolio(idPortfolio, searchText, idUser); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; } @@ -357,7 +357,7 @@ public class ArticleServiceImpl extends AbstractService
implements Arti @Override public List findAnnouncements() { List list = articleMapper.selectAnnouncements(); - list.forEach(articleDTO -> genArticle(articleDTO,0)); + list.forEach(articleDTO -> genArticle(articleDTO, 0)); return list; }