공지사항 검색, 페이징 추가.

This commit is contained in:
주우성
2025-06-14 16:33:13 +09:00
parent 966cca98cf
commit 485281bbb3
5 changed files with 67 additions and 20 deletions

View File

@@ -24,12 +24,19 @@
<if test="cmd.searchField != null and cmd.searchField != ''">
<choose>
<when test="cmd.searchField eq 'titleContent'">
AND ( a.title ILIKE '%' || #{cmd.searchValue} || '%' OR a.content ILIKE '%' || #{cmd.searchValue} || '%' )
</when>
<when test="cmd.searchField eq 'title'">
AND a.title ILIKE '%' || #{cmd.searchValue} || '%'
</when>
<when test="cmd.searchField eq 'updatedBy'">
AND a.updated_by ILIKE '%' || #{cmd.searchValue} || '%'
<when test="cmd.searchField eq 'content'">
AND a.content ILIKE '%' || #{cmd.searchValue} || '%'
</when>
<when test="cmd.searchField eq 'updatedBy'">
AND a.updated_by ILIKE '%' || #{cmd.searchValue} || '%'
</when>
</choose>
</if>