소스 검색

证书认证增加模糊检索

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>