1: 应答策略查询列表 问题字段缺失问题修复

pull/1/head
xueqingkun 11 months ago
parent 2a036ad520
commit 1ff3ee42d2

@ -78,7 +78,10 @@ public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryMa
Page<AskQuestionLibraryResVo> askQuestionLibraryResVoPage = askTemplateQuestionLibraryService.queryPageList(pageNum, pageSize, askQuestionLibraryReqVo);
if (CollUtil.isNotEmpty(askQuestionLibraryResVoPage.getRecords())){
List<String> libraryQuestionIds = askQuestionLibraryResVoPage.getRecords().stream().map(AskQuestionLibraryResVo::getLibraryQuestionId).collect(Collectors.toList());
Map<String, List<String>> libraryMapQuestion = askTemplateQuestionSimilarityService.querySimilarityQuestionMapByLibraryIds(libraryQuestionIds);
askQuestionLibraryResVoPage.getRecords().forEach(library->{
library.setQuestion(libraryMapQuestion.get(library.getLibraryQuestionId()));
library.generateDicIdPath();
library.makeDescription();
});

Loading…
Cancel
Save