|
@ -68,7 +68,10 @@ public class ArticleServiceImpl implements ArticleService { |
|
|
@Override |
|
|
@Override |
|
|
public List<ArticleWithTagsResultDTO> articleList(ArticlePageFormDTO articlePageFormDTO) { |
|
|
public List<ArticleWithTagsResultDTO> articleList(ArticlePageFormDTO articlePageFormDTO) { |
|
|
Result<List<ArticleListResultDTO>> articles = govVoiceOpenFeignClient.resiArticleList(articlePageFormDTO); |
|
|
Result<List<ArticleListResultDTO>> articles = govVoiceOpenFeignClient.resiArticleList(articlePageFormDTO); |
|
|
if(articles.success() && null != articles.getData() && articles.getData().size() > NumConstant.ZERO){ |
|
|
if(articles.success()){ |
|
|
|
|
|
if(null == articles.getData() || articles.getData().size() <= NumConstant.ZERO){ |
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
|
} |
|
|
return articles.getData().stream().map(article -> { |
|
|
return articles.getData().stream().map(article -> { |
|
|
ArticleWithTagsResultDTO artObj = ConvertUtils.sourceToTarget(article,ArticleWithTagsResultDTO.class); |
|
|
ArticleWithTagsResultDTO artObj = ConvertUtils.sourceToTarget(article,ArticleWithTagsResultDTO.class); |
|
|
artObj.setTagName(new HashSet<>()); |
|
|
artObj.setTagName(new HashSet<>()); |
|
@ -83,7 +86,7 @@ public class ArticleServiceImpl implements ArticleService { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return new ArrayList<>(); |
|
|
throw new RenException(articles.getInternalMsg()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|