package cn.palmte.work.model;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ProjectBudgetPlanDetailTempRepository extends JpaRepository<ProjectBudgetPlanDetailTemp,Integer> {
    List<ProjectBudgetPlanDetailTemp> findAllByProjectIdEquals(int id);

    @Query(value = "select * from project_budget_plan_detail_temp where project_id in ?1", nativeQuery = true)
    List<ProjectBudgetPlanDetailTemp> findAllByProjectIds(List<Integer> projectInt);
}
