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

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

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


public interface PlanApprvRepository extends JpaRepository<PlanApprv, PlanApprv.PlanApprvId> {
  Optional<PlanApprv> findTopByPlanKeyOrderByApprvSeqDesc(Integer planKey);

  List<PlanApprv> findByPlanKey(Integer planKey);
}
