Explorar o código

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

kongwz %!s(int64=3) %!d(string=hai) anos
pai
achega
7b47a148d7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/main/java/com/diagbot/facade/KlConceptFacade.java

+ 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;
     }