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