|
|
@ -438,11 +438,8 @@ public class VecTest {
|
|
|
|
List<Map<String, Object>> vecData = questionLibraries.stream().map(library -> {
|
|
|
|
List<Map<String, Object>> vecData = questionLibraries.stream().map(library -> {
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
map.put("questionCode", library.getId());
|
|
|
|
map.put("questionCode", library.getId());
|
|
|
|
if (StrUtil.isEmpty(library.getDefaultAnswer())) {
|
|
|
|
|
|
|
|
log.warn("defaultAnswer is empty . libraryId is :{}", library.getId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
List<String> joinList = library.getQuestion().stream()
|
|
|
|
List<String> joinList = library.getQuestion().stream()
|
|
|
|
.map(question -> question + " " + library.getDefaultAnswer()).collect(Collectors.toList());
|
|
|
|
.map(question -> question + " "/* + library.getDefaultAnswer()*/).collect(Collectors.toList());
|
|
|
|
map.put("questionList", joinList);
|
|
|
|
map.put("questionList", joinList);
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|