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

@Repository
public interface PurchaseOrderDao extends JpaSpecificationExecutor<PurchaseOrder>, JpaRepository<PurchaseOrder, Long> {
	
	/**
	 * @param enUU
	 *            买方企业ID
	 * @param code
	 *            订单号
	 * @return
	 */
	public List<PurchaseOrder> findByEnUUAndCode(long enUU, String code);
	
}
