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

import com.dbnt.sims.fpiMgt.affair.model.AffairFile;
import org.springframework.data.jpa.repository.JpaRepository;

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


public interface AffairFileRepository extends JpaRepository<AffairFile, AffairFile.AffairFileId> {
    List<AffairFile> findByAffairKey(Integer affairKey);
    Optional<AffairFile> findTopByAffairKeyOrderByFileSeqDesc(Integer planKey);
}
