package gc.mda.kcg.domain.enforcement.repository;

import gc.mda.kcg.domain.enforcement.EnforcementPlan;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface EnforcementPlanRepository extends JpaRepository<EnforcementPlan, Long> {
    Page<EnforcementPlan> findByStatusOrderByPlannedDateAsc(String status, Pageable pageable);
    Page<EnforcementPlan> findAllByOrderByPlannedDateDesc(Pageable pageable);
}
