Browse Source

术语搜索修改

rgb 5 years ago
parent
commit
fb10d48ab4

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

@@ -206,8 +206,8 @@ public class ConceptFacade extends ConceptServiceImpl {
 
         QueryWrapper<Concept> conceptQe = new QueryWrapper<>();
         conceptQe.eq("is_deleted", IsDeleteEnum.N.getKey());
-        conceptQe.like("lib_name", getAllForRelationVO.getName());
-        conceptQe.eq("lib_type", getAllForRelationVO.getTypeId());
+        conceptQe.like(StringUtil.isNotBlank(getAllForRelationVO.getName()),"lib_name", getAllForRelationVO.getName());
+        conceptQe.eq(getAllForRelationVO.getTypeId()!=null,"lib_type", getAllForRelationVO.getTypeId());
         List<Concept> conceptList = list(conceptQe);
 
         Map<Long, Long> reCouMap = new HashMap<>();