浏览代码

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

kongwz 3 年之前
父节点
当前提交
7b47a148d7
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
     }