|
@@ -86,6 +86,8 @@ 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);
|
|
|
return newsArticleVo;
|
|
|
}
|
|
|
|
|
@@ -145,7 +147,7 @@ public class NewsArticleServiceImpl extends BaseService implements NewsArticleSe
|
|
|
dto.setNavigationBarId(navigationBarId);
|
|
|
newsArticleNavigationBarService.saveNewsArticleNavigationBar(dto);
|
|
|
}
|
|
|
- } catch (ServiceException e) {
|
|
|
+ } catch (Exception e) {
|
|
|
log.error("新增新闻-新增新闻导航关联表失败,失败原因:{}", e.getMessage());
|
|
|
throw new ServiceException("新增新闻失败");
|
|
|
}
|