feat: Enhance news information query with full-text keyword search support
This commit is contained in:
@@ -46,6 +46,12 @@
|
||||
<if test="query.title != null and query.title != ''">
|
||||
and news.title like '%' || #{query.title}::varchar || '%'
|
||||
</if>
|
||||
<if test="query.keyword != null and query.keyword != ''">
|
||||
and (
|
||||
news.title like '%' || #{query.keyword}::varchar || '%'
|
||||
or news.content like '%' || #{query.keyword}::varchar || '%'
|
||||
)
|
||||
</if>
|
||||
<if test="query.module != null and query.module != ''">
|
||||
and news.module = #{query.module}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user