Просмотр исходного кода

证书认证取消模糊检索

Memory_LG 6 месяцев назад
Родитель
Сommit
d8f22032d4
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/resources/com/sooka/mybatis/mapper/TCmsContentMapper.xml

+ 2 - 2
src/main/resources/com/sooka/mybatis/mapper/TCmsContentMapper.xml

@@ -405,10 +405,10 @@
             and c.site_id=#{siteId}
             and c.status=1
             <if test="title != null and title != ''">
-                and c.title like CONCAT('%', #{title}, '%')
+                and c.title = #{title}
             </if>
             <if test="telephone != null and telephone != ''">
-                and c.keywords like CONCAT('%', #{telephone}, '%')
+                and c.keywords = #{telephone}
             </if>
         order by c.content_id desc
     </select>