소스 검색

搜索去空格修改

wangfeng 5 년 전
부모
커밋
1286377dba
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      knowledgeman-service/src/main/resources/mapper/DiagnoseMapper.xml

+ 2 - 2
knowledgeman-service/src/main/resources/mapper/DiagnoseMapper.xml

@@ -24,10 +24,10 @@
             and UPPER(a.dis_name) like concat('%',UPPER(trim(#{disName})) ,'%' )
         </if>
         <if test="modifier != null and modifier != ''">
-            and a.modifier like concat('%',#{modifier} ,'%' )
+            and UPPER(a.modifier) like concat('%',UPPER(trim(#{modifier})) ,'%' )
         </if>
         <if test="hasQuestion != null and hasQuestion != ''">
-            and a.has_question = #{hasQuestion}
+            and UPPER(a.has_question) = UPPER(trim(#{hasQuestion}))
         </if>
         ORDER BY a.has_question desc, a.gmt_modified desc
     </select>