|
@@ -88,8 +88,18 @@ public class NewsArticleServiceImpl extends BaseService implements NewsArticleSe
|
|
|
String url = accessPath + accessResource + newsArticlePo.getPhotoUrl().replace("/","");
|
|
|
newsArticleVo.setPhotoUrl(url);
|
|
|
}
|
|
|
+ // 查询新闻所属导航
|
|
|
List<Long> navigationBarIdList = newsArticleNavigationBarService.getNavigationBarIdByNewsId(id);
|
|
|
newsArticleVo.setNavigationBarIds(navigationBarIdList);
|
|
|
+ // 查询新闻内图片url地址
|
|
|
+ List<NewsArticlePhotoPo> newsArticlePhotoPoList = newsArticlePhotoService.getArticlePhotoByNewsId(id);
|
|
|
+ List<String> urlList = new ArrayList<>();
|
|
|
+ for (NewsArticlePhotoPo po : newsArticlePhotoPoList) {
|
|
|
+ PhotoVo photoVo = photoService.getPhotoById(po.getPhotoId());
|
|
|
+ String url = accessPath + accessResource + photoVo.getUrl().replace("/","");
|
|
|
+ urlList.add(url);
|
|
|
+ }
|
|
|
+ newsArticleVo.setUrlList(urlList);
|
|
|
return newsArticleVo;
|
|
|
}
|
|
|
|