瀏覽代碼

搜索去空格修改

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>