Browse Source

静态信息搜索优化

gaodm 6 years ago
parent
commit
a28c61da7b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      aipt-service/src/main/java/com/diagbot/facade/ConceptFacade.java

+ 5 - 1
aipt-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -350,7 +350,11 @@ public class ConceptFacade extends ConceptServiceImpl {
         List<RetrievalDTO> staticRetrievalList = this.staticKnowledge(retrievalVO);
         for (RetrievalDTO retrievalDTO : staticRetrievalList) {
             retrievalDTO.setType(ParamConvertUtil.libConvert2Concept(retrievalDTO.getLibTypeId().intValue()));
-            if(retrievalDTO.getShowType().intValue() == 1){//去除本体retrivalName
+            List<Integer> notshowIds = new ArrayList<>();
+            notshowIds.add(1);
+            notshowIds.add(11);
+            notshowIds.add(21);
+            if(notshowIds.contains(retrievalDTO.getShowType().intValue())){//去除本体retrivalName
                 if(retrievalDTO.getName().equals(retrievalDTO.getRetrievalName())){
                     retrievalDTO.setRetrievalName(null);
                 }