From 61fe8013743817d70243969511a05ec764a86f4b Mon Sep 17 00:00:00 2001 From: huGgW Date: Thu, 14 Mar 2024 14:57:25 +0900 Subject: [PATCH] Feat: Add FindByIdAndIsPrivateFalse --- .../csereal/core/notice/database/NoticeRepository.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/wafflestudio/csereal/core/notice/database/NoticeRepository.kt b/src/main/kotlin/com/wafflestudio/csereal/core/notice/database/NoticeRepository.kt index 17269405..5b8cfa4a 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/core/notice/database/NoticeRepository.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/core/notice/database/NoticeRepository.kt @@ -17,6 +17,7 @@ import org.springframework.stereotype.Component import java.time.LocalDateTime interface NoticeRepository : JpaRepository, CustomNoticeRepository { + fun findByIdAndIsPrivateFalse(id: Long): NoticeEntity? fun findAllByIsPrivateFalseAndIsImportantTrueAndIsDeletedFalse(): List fun findAllByIsImportantTrueAndIsDeletedFalse(): List fun findFirstByIsDeletedFalseAndIsPrivateFalseAndCreatedAtLessThanOrderByCreatedAtDesc(