Commit d3022d00 by shenjunjie

简报发布任务调整2

parent 160bf8c5
...@@ -412,7 +412,7 @@ public class ReportServiceImpl implements ReportService { ...@@ -412,7 +412,7 @@ public class ReportServiceImpl implements ReportService {
List<Map.Entry<String, Integer>> topPosArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.POSITIVE.getName(), projectId, linkedGroupId, contendId, 3); List<Map.Entry<String, Integer>> topPosArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.POSITIVE.getName(), projectId, linkedGroupId, contendId, 3);
result.put("topPosSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topPosArticleList)); result.put("topPosSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topPosArticleList));
} else { } else {
result.put("topPosSummary", this.getTopEventMsg(topPosEventList)); result.put("topPosSummary", this.getTopEventMsg(topPosEventList, projectId));
} }
//获取上个周期时间范围内总正面稿件数 //获取上个周期时间范围内总正面稿件数
long lastPositiveTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.POSITIVE.getName(), projectId, contendId); long lastPositiveTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.POSITIVE.getName(), projectId, contendId);
...@@ -430,7 +430,7 @@ public class ReportServiceImpl implements ReportService { ...@@ -430,7 +430,7 @@ public class ReportServiceImpl implements ReportService {
List<Map.Entry<String, Integer>> topNeuArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.NEUTRAL.getName(), projectId, linkedGroupId, contendId, 4); List<Map.Entry<String, Integer>> topNeuArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.NEUTRAL.getName(), projectId, linkedGroupId, contendId, 4);
result.put("topNeuSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topNeuArticleList)); result.put("topNeuSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topNeuArticleList));
} else { } else {
result.put("topNeuSummary", this.getTopEventMsg(topNeuEventList)); result.put("topNeuSummary", this.getTopEventMsg(topNeuEventList, projectId));
} }
//获取上个周期时间范围内总中性稿件数 //获取上个周期时间范围内总中性稿件数
long lastNeutralTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.NEUTRAL.getName(), projectId, contendId); long lastNeutralTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.NEUTRAL.getName(), projectId, contendId);
...@@ -448,7 +448,7 @@ public class ReportServiceImpl implements ReportService { ...@@ -448,7 +448,7 @@ public class ReportServiceImpl implements ReportService {
List<Map.Entry<String, Integer>> topNegArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.NEGATIVE.getName(), projectId, linkedGroupId, contendId, 4); List<Map.Entry<String, Integer>> topNegArticleList = markDataService.getMarkTopTitle(startTime, endTime, EmotionEnum.NEGATIVE.getName(), projectId, linkedGroupId, contendId, 4);
result.put("topNegSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topNegArticleList)); result.put("topNegSummary", this.getTopArticlesMsg(startTime, endTime, projectId, linkedGroupId, contendId, topNegArticleList));
} else { } else {
result.put("topNegSummary", this.getTopEventMsg(topNegEventList)); result.put("topNegSummary", this.getTopEventMsg(topNegEventList, projectId));
} }
//获取上个周期时间范围内总负面稿件数 //获取上个周期时间范围内总负面稿件数
long lastNegativeTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.NEGATIVE.getName(), projectId, contendId); long lastNegativeTotal = markDataService.getYuqingMarkCount(lastStartTime, startTime, EmotionEnum.NEGATIVE.getName(), projectId, contendId);
...@@ -586,8 +586,7 @@ public class ReportServiceImpl implements ReportService { ...@@ -586,8 +586,7 @@ public class ReportServiceImpl implements ReportService {
* @param topEventList top事件集合 * @param topEventList top事件集合
* @return top事件信息 * @return top事件信息
*/ */
private List<JSONObject> getTopEventMsg(List<com.zhiwei.middleware.event.pojo.entity.Event> topEventList) { private List<JSONObject> getTopEventMsg(List<com.zhiwei.middleware.event.pojo.entity.Event> topEventList,String projectId) {
String projectId = UserThreadLocal.getProjectId();
return topEventList.stream().map(event -> { return topEventList.stream().map(event -> {
boolean hasAnalyze = false; boolean hasAnalyze = false;
for (BrandkbsBasicInfo brandkbsInfo : event.getBrandkbsInfos()) { for (BrandkbsBasicInfo brandkbsInfo : event.getBrandkbsInfos()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment