1: 删除vp_ask_template_question_library中的多余字段

pull/1/head
xueqingkun 11 months ago
parent 2673998a8f
commit 6f9a9bc78c

@ -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());

Loading…
Cancel
Save