package com.uas.platform.b2b.dao;

import com.uas.platform.b2b.model.PurchaseInquiryTemp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * ERP保存询价单操作
 * Created by hejq on 2018-04-12.
 */
@Repository
public interface PurchaseInquiryTempDao extends JpaSpecificationExecutor<PurchaseInquiryTemp>, JpaRepository<PurchaseInquiryTemp, Long> {

    /**
     * 通过企业UU和单据编号查询是询价单是否已存在
     * @param code 单据编号
     * @param enUU 企业UU
     * @return
     */
    PurchaseInquiryTemp findByCodeAndEnUU(String code, Long enUU);
}
