fix 查询报错

This commit is contained in:
2023-07-02 18:29:46 +08:00
parent 2e738436de
commit 8e6df6bcf5

View File

@@ -11,7 +11,7 @@
<select id="listFinds" resultType="com.quinn.pojo.FindResult">
select b.bid as topicId,'BLOG' as category,b.gmt_create as gmtCreate,b.title as topicName,b.content_json as contentText from qn_blog b
where and b.category_id = '2'
where b.category_id = '2'
and (
b.title like CONCAT('%',#{findWhat},'%') or b.content_json like CONCAT('%',#{findWhat},'%')
)