내정보 공지사항 : 검색 제외

This commit is contained in:
DESKTOP-E9DJS27\etribe
2025-06-14 15:45:37 +09:00
parent 75f1d1eb23
commit 966cca98cf
20 changed files with 329 additions and 123 deletions

View File

@@ -21,6 +21,17 @@
FROM notice a
WHERE a.id = #{id}
AND a.is_deleted = false
<if test="searchOpen != null and searchOpen != ''">
<choose>
<when test="searchOpen eq 'true'">
AND a.visible = true
</when>
<when test="searchOpen eq 'false'">
AND a.visible = false
</when>
</choose>
</if>
</if>
</select>

View File

@@ -11,6 +11,8 @@
a.id,
a.updated_by,
a.updated_at,
a.created_by,
a.created_at,
a.title,
a.content,
a.visible,
@@ -52,6 +54,9 @@
<when test="order.property eq 'endDate'">a.end_date</when>
<when test="order.property eq 'updatedBy'">a.updated_by</when>
<when test="order.property eq 'updatedAt'">a.updated_at</when>
<when test="order.property eq 'createdBy'">a.created_by</when>
<when test="order.property eq 'createdAt'">a.created_at</when>
<otherwise>a.id</otherwise>
</choose>
<choose>
<when test="order.direction.toString() eq 'DESC'">DESC</when>