...
|
...
|
@@ -184,6 +184,7 @@ public class TopicServiceImpl implements ITopicService { |
|
|
if(articleTopMap != null && articleTopMap.get(grassTopic.getId()) != null){
|
|
|
List<Integer> topArticleIds = articleTopMap.get(grassTopic.getId()).stream().map(GrassArticleTopic::getArticleId).collect(Collectors.toList());
|
|
|
bo.setTopArticles(StringUtils.join(topArticleIds,","));
|
|
|
bo.setTopStatus(1);
|
|
|
}
|
|
|
result.add(bo);
|
|
|
}
|
...
|
...
|
@@ -220,7 +221,7 @@ public class TopicServiceImpl implements ITopicService { |
|
|
articleTopicDao.updateTopByTopicId(req.getId(),updateTime);
|
|
|
|
|
|
//将指定文章写入 话题-文章关联表
|
|
|
int result = articleTopicDao.updateTopByArticles(articleList,1,updateTime);
|
|
|
int result = articleTopicDao.updateTopByArticles(validArticles,1,updateTime);
|
|
|
logger.info("end addArticlesTop,req:{},result:{}",req,result);
|
|
|
return new ApiResponse(result);
|
|
|
}
|
...
|
...
|
|