浏览代码

证书认证增加模糊检索

Memory_LG 4 月之前
父节点
当前提交
5cf0f21518
共有 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 = #{title}
+                and c.title like CONCAT('%', #{title}, '%')
             </if>
             <if test="telephone != null and telephone != ''">
-                and c.keywords = #{telephone}
+                and c.keywords like CONCAT('%', #{telephone}, '%')
             </if>
         order by c.content_id desc
     </select>