package br.gov.sigefp.treasury.repository;

import br.gov.sigefp.treasury.domain.Approval;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface ApprovalRepository extends JpaRepository<Approval, UUID> {
    
    List<Approval> findByAuthorizationId(UUID authorizationId);
    
    List<Approval> findByApprovedBy(UUID approvedBy);
    
    List<Approval> findByAuthorizationIdOrderByLevelAsc(UUID authorizationId);
}

