feat(ranking): 스냅샷 완전 공백 조회를 추가한다

This commit is contained in:
2026-06-09 12:31:46 +09:00
parent 70791f36e9
commit 017ba309f0
4 changed files with 24 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ class DefaultCreatorRankingSnapshotRepository(
return repository.findPreviousCompletedSnapshots().map { it.toRecord() }
}
override fun isSnapshotTableEmpty(): Boolean {
return repository.count() == 0L
}
@Transactional
override fun replaceSnapshots(
aggregationStartAtUtc: LocalDateTime,

View File

@@ -12,6 +12,8 @@ interface CreatorRankingSnapshotPort {
fun findPreviousCompletedSnapshots(): List<CreatorRankingSnapshotRecord>
fun isSnapshotTableEmpty(): Boolean
fun replaceSnapshots(
aggregationStartAtUtc: LocalDateTime,
aggregationEndAtUtc: LocalDateTime,