package com.ecep.contract.ds.project.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ecep.contract.model.ProjectCost;
import com.ecep.contract.model.ProjectCostItem;

@Repository
public interface ProjectCostItemRepository extends JpaRepository<ProjectCostItem, Integer>, JpaSpecificationExecutor<ProjectCostItem> {
    /**
     * 根据项目成本查询项目成本条目
     */
    List<ProjectCostItem> findByCost(ProjectCost cost);
}