|
@@ -76,7 +76,7 @@ public class KnowledgeBaseServiceImpl implements KnowledgeBaseService {
|
|
|
List<KBDictDataVo> kbDictDataVoList = collect.stream().filter(dictData -> dictData.getLabel().contains(searchContent)).collect(Collectors.toList());
|
|
|
String searchValue = kbDictDataVoList.stream().map(KBDictDataVo::getValue).collect(Collectors.joining(","));
|
|
|
info.setSearchValue(StringUtils.isBlank(searchValue) ? "" : searchValue);
|
|
|
- info.setDictData(collect.stream().collect(Collectors.toMap(KBDictDataVo::getValue, KBDictDataVo::getLabel)));
|
|
|
+ info.setDictData(collect.stream().collect(Collectors.toMap(KBDictDataVo::getValue, KBDictDataVo::getLabel,(existingValue, newValue) -> existingValue)));
|
|
|
} else {
|
|
|
info.setSearchValue(searchContent);
|
|
|
}
|