Pārlūkot izejas kodu

在集合业务中,搜索术语,搜索的可能为空,把空的过滤掉

kongwz 3 gadi atpakaļ
vecāks
revīzija
7b47a148d7

+ 1 - 0
src/main/java/com/diagbot/facade/KlConceptFacade.java

@@ -439,6 +439,7 @@ public class KlConceptFacade extends KlConceptServiceImpl {
 
 
     public List<GetAllForRelationDTO> searchCollectionConceptFac(SearchCollectionConceptVO searchCollectionConceptVO) {
+        searchCollectionConceptVO.setNames(searchCollectionConceptVO.getNames().stream().filter(x ->StringUtil.isNotBlank(x)).collect(Collectors.toList()));
         List<GetAllForRelationDTO> getAllForRelationDTOS = this.searchCollectionConcept(searchCollectionConceptVO);
         return getAllForRelationDTOS;
     }