package com.dbnt.faisp.main.ivsgtMgt.boardInvestigation.repository;

import com.dbnt.faisp.main.ivsgtMgt.boardInvestigation.model.IvsgtFile;
import org.springframework.data.jpa.repository.JpaRepository;

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


public interface IvsgtFileRepository extends JpaRepository<IvsgtFile, IvsgtFile.IvsgtFileId> {
    List<IvsgtFile> findByIvsgtKey(Integer ivsgtKey);
    Optional<IvsgtFile> findTopByIvsgtKeyOrderByFileSeqDesc(Integer ivsgtKey);
}
