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.Project;
import com.ecep.contract.model.ProjectQuotation;

@Repository
public interface ProjectQuotationRepository
        extends JpaRepository<ProjectQuotation, Integer>, JpaSpecificationExecutor<ProjectQuotation> {

    /**
     * 根据项目查询
     *
     * @param project 项目
     * @return QuotationApproval list
     */
    List<ProjectQuotation> findAllByProject(Project project);
}
