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

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

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


public interface ResultFileRepository extends JpaRepository<ResultFile, ResultFile.ResultFileId> {
    List<ResultFile> findByResultKey(Integer resultKey);
    Optional<ResultFile> findTopByResultKeyOrderByFileSeqDesc(Integer resultKey);
}
