package com.uas.platform.b2b.dao;

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.uas.platform.b2b.model.SaleQuotation;

@Repository
public interface SaleQuotationDao extends JpaSpecificationExecutor<SaleQuotation>, JpaRepository<SaleQuotation, Long> {

	/**
	 * @param enUU
	 *            报价方企业ID
	 * @param code
	 *            流水号
	 * @return
	 */
	public List<SaleQuotation> findByEnUUAndCode(long enUU, String code);

	/**
	 * 按客户UU和传到客户ERP的状态查找
	 * 
	 * @param custUU
	 * @param sendStatus
	 * @return
	 */
	public List<SaleQuotation> findByCustUUAndSendStatus(long custUU, short sendStatus);

}
