package com.dbnt.sims.fpiMgt.affairResult.repository;

import com.dbnt.sims.fpiMgt.affairResult.model.ResultApprv;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;


public interface ResultApprvRepository extends JpaRepository<ResultApprv, ResultApprv.ResultApprvId> {
  Optional<ResultApprv> findTopByResultKeyOrderByApprvSeqDesc(Integer resultKey);

  List<ResultApprv> findByResultKey(Integer resultKey);
}
