Browse Source

搜索去空格修改

wangfeng 5 years ago
parent
commit
1286377dba

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

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