Browse Source

搜索去空格修改

wangfeng 5 years ago
parent
commit
1286377dba
1 changed files with 2 additions and 2 deletions
  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>