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; }