|
@@ -103,16 +103,15 @@ public class KnowledgeLabelServiceImpl extends SuperServiceImpl<KnowledgeLabelMa
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
- public List<KnowledgeLabelVo> labels(Integer tops) {
|
|
|
- List<KnowledgeLabelVo> labels = knowledgeLabelMapper.selectTops(tops);
|
|
|
- labels.forEach(e -> {
|
|
|
- JPaasUser user = userService.queryUser(e.getOperator());
|
|
|
- if (user != null) {
|
|
|
- e.setOperatorName(user.getFullName());
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- return labels;
|
|
|
+ /**
|
|
|
+ * 去高频词找寻前50条记录
|
|
|
+ * @param tops
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<String> labels(Integer tops) {
|
|
|
+ List<SearchParticipleWordCloudVo> searchParticipleWordCloudVos = analysisCommonService.searchParticipleWordCloud(tops);
|
|
|
+ List<String> result = searchParticipleWordCloudVos.stream().map(SearchParticipleWordCloudVo::getParticiple).collect(Collectors.toList());
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
/**
|