|
|
@ -371,6 +371,7 @@ public class NewsServiceImpl extends BaseServiceImpl<NewsDao, NewsEntity> implem |
|
|
|
private BannerService bannerService; |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result newsToBanner(String newsId) { |
|
|
|
|
|
|
|
NewsEntity newsEntity = baseDao.selectById(newsId); |
|
|
@ -390,6 +391,7 @@ public class NewsServiceImpl extends BaseServiceImpl<NewsDao, NewsEntity> implem |
|
|
|
banner.setImgUrl(newsEntity.getNewsImageUrl()); |
|
|
|
banner.setNewsFlag(YesOrNoEnum.YES.value()); |
|
|
|
banner.setNewsId(newsId); |
|
|
|
banner.setBannerType(NumConstant.TWO_STR); |
|
|
|
banner.setTitle(newsEntity.getNewsTitle()); |
|
|
|
|
|
|
|
this.bannerService.saveNewsToBanner(banner, deptIds); |
|
|
|