|
@@ -50,10 +50,12 @@ public class RetrievalFacade {
|
|
|
List<String> questionNames = new ArrayList<>();
|
|
|
if (ListUtil.isNotEmpty(conceptInfos.data)) {
|
|
|
for (ConceptRetrievalDTO conceptRetrievalDTO : conceptInfos.data) {
|
|
|
- if (!questionNames.contains(conceptRetrievalDTO.getSameName())) {
|
|
|
+ if (!questionNames.contains(conceptRetrievalDTO.getSameName())
|
|
|
+ && conceptRetrievalDTO.getSelfName() != null) {
|
|
|
questionNames.add(conceptRetrievalDTO.getSelfName());
|
|
|
}
|
|
|
- if (!questionNames.contains(conceptRetrievalDTO.getParentName())) {
|
|
|
+ if (!questionNames.contains(conceptRetrievalDTO.getParentName())
|
|
|
+ && conceptRetrievalDTO.getParentName() != null) {
|
|
|
questionNames.add(conceptRetrievalDTO.getParentName());
|
|
|
}
|
|
|
}
|
|
@@ -61,8 +63,8 @@ public class RetrievalFacade {
|
|
|
questionInfoQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.in("tag_name", questionNames)
|
|
|
.eq("type", retrievalVO.getType())
|
|
|
- .ne("tag_type", 8)
|
|
|
- .eq("item_type", 0);
|
|
|
+ .ne("tag_type", 8)/*
|
|
|
+ .eq("item_type", 0)*/;
|
|
|
List<QuestionInfo> questionInfoList = questionFacade.list(questionInfoQueryWrapper);
|
|
|
Map<String, QuestionInfo> questionInfoMap = questionInfoList.stream().collect(Collectors.toMap(QuestionInfo::getTagName, questionInfo -> questionInfo));
|
|
|
RetrievalDTO retrievalDTO = new RetrievalDTO();
|