Browse Source

代码优化

gaodm 6 years ago
parent
commit
474eb989ab

+ 2 - 2
knowledgeman-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -145,10 +145,10 @@ public class ConceptFacade extends ConceptServiceImpl {
             libraryInfoList.forEach(i -> {
                 if (conceptMap.get(i.getConceptId()) == null || conceptMap.get(i.getConceptId()).getLibId().intValue() != i.getId().intValue()
                 		||(getAllConceptVO.getExcludedConceptIds() != null && getAllConceptVO.getExcludedConceptIds().contains(i.getConceptId()))) {
-                    i.setIsDeleted("Y");
+                    i.setIsDeleted(IsDeleteEnum.Y.getKey());
                 }
             });
-            libraryInfoList = libraryInfoList.stream().filter(i -> i.getIsDeleted().equals("N")).collect(Collectors.toList());
+            libraryInfoList = libraryInfoList.stream().filter(i -> i.getIsDeleted().equals(IsDeleteEnum.N.getKey())).collect(Collectors.toList());
         }
         
         /*//添加过术语医学属性的过滤掉