package com.dbnt.faisp.main.fpiMgt.affairPlan.repository;

import com.dbnt.faisp.main.fpiMgt.affairPlan.model.PlanFile;
import org.springframework.data.jpa.repository.JpaRepository;

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


public interface PlanFileRepository extends JpaRepository<PlanFile, PlanFile.PlanFileId> {
    List<PlanFile> findByPlanKey(Integer planKey);
    Optional<PlanFile> findTopByPlanKeyOrderByFileSeqDesc(Integer planKey);
}
