package com.ffii.fpsms.m18.entity

import com.ffii.core.support.AbstractRepository
import org.springframework.stereotype.Repository
import java.time.LocalDateTime

@Repository
interface SchedulerSyncLogRepository : AbstractRepository<SchedulerSyncLog, Long> {
    fun findTop20ByOrderByEndTimeDesc(): List<SchedulerSyncLog>

    fun findFirstBySyncTypeAndStartTimeBetweenOrderByEndTimeDesc(
        syncType: String,
        startTime: LocalDateTime,
        endTime: LocalDateTime,
    ): SchedulerSyncLog?
}