Commit 4a4dd4ec by 陈健智

修改舆情外部接口情感标签不组合返回

parent d6841459
......@@ -390,7 +390,7 @@ public class ProjectServiceImpl implements ProjectService {
tagsMap.putAll(project.getHitTags().stream().collect(Collectors.groupingBy(MarkerTag::getGroupName)));
}
Map<String, List<MarkerTag>> emotionMarkerTags = getEmotionMarkerTags(project.getBrandLinkedGroup());
if (!Tools.isEmpty(tagsMap.get(Constant.EMOTION_LABEL_KEY))){
if (!Tools.isEmpty(tagsMap.get(Constant.EMOTION_LABEL_KEY))) {
tagsMap.get(Constant.EMOTION_LABEL_KEY).addAll(0, emotionMarkerTags.get(Constant.EMOTION_LABEL_KEY));
}else {
tagsMap.putAll(emotionMarkerTags);
......@@ -410,9 +410,7 @@ public class ProjectServiceImpl implements ProjectService {
}
if (contend.isHasEmotion()){
Map<String, List<MarkerTag>> emotionMarkerTags = getEmotionMarkerTags(contend.getBrandLinkedGroup());
if (!Tools.isEmpty(tagsMap.get(Constant.EMOTION_LABEL_KEY))){
tagsMap.get(Constant.EMOTION_LABEL_KEY).addAll(0, emotionMarkerTags.get(Constant.EMOTION_LABEL_KEY));
}else {
if (Tools.isEmpty(tagsMap.get(Constant.EMOTION_LABEL_KEY))) {
tagsMap.putAll(emotionMarkerTags);
}
}
......
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