package com.mosquito.project.persistence.repository;

import com.mosquito.project.persistence.entity.RewardJobEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.OffsetDateTime;
import java.util.List;

public interface RewardJobRepository extends JpaRepository<RewardJobEntity, Long> {
    List<RewardJobEntity> findTop10ByStatusAndNextRunAtLessThanEqualOrderByCreatedAtAsc(String status, OffsetDateTime now);
}

