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.PurchaseReturn;

@Repository
public interface PurchaseReturnDao extends JpaSpecificationExecutor<PurchaseReturn>, JpaRepository<PurchaseReturn, Long> {

	/**
	 * 按所属企业及编号查找采购验收单
	 * 
	 * @param enUU
	 * @param code
	 * @return
	 */
	public List<PurchaseReturn> findPurchaseReturnByEnUUAndCode(Long enUU, String code);
	
	/**
	 * 卖家根据卖家UU号和下载状态获取需要下载的客户采购验收入库单
	 * @return
	 */
	public List<PurchaseReturn> findPurchaseReturnByVendUUAndSendStatus(Long vendUU, Short sendStatus);

}
