Explorar o código

术语关系添加页搜索条件去空格、去大小写。

rengb %!s(int64=5) %!d(string=hai) anos
pai
achega
23b2b9f29b

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

@@ -177,7 +177,10 @@ public class ConceptFacade extends ConceptServiceImpl {
         libraryInfoQe.eq("is_deleted", IsDeleteEnum.N.getKey());
         libraryInfoQe.eq(getAllConceptVO.getIsConcept() != null,
                 "is_concept", getAllConceptVO.getIsConcept());
-        libraryInfoQe.like("name", getAllConceptVO.getName());
+        libraryInfoQe.apply(
+                "UPPER(`name`) LIKE CONCAT('%',trim('"
+                        + getAllConceptVO.getName().toUpperCase()
+                        + "'),'%')");
         List<LibraryInfo> libraryInfoList = libraryinfoFacade.list(libraryInfoQe);
         if (ListUtil.isEmpty(libraryInfoList)) {
             return getAllConceptDTOList;