查询接口优化

This commit is contained in:
2026-01-12 10:36:35 +08:00
parent daa3b9f2c2
commit 7cb1fbb726
2 changed files with 3 additions and 2 deletions

View File

@@ -42,7 +42,7 @@
<where>
del_flag = '0'
<if test="query.searchValue != null and query.searchValue != ''">
and zcmc like concat('%', #{query.searchValue}, '%')
and zcmc like '%' || #{query.searchValue}::varchar || '%'
</if>
</where>
order by publish_time desc, create_time desc