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

@Repository
public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaRepository<Product, Long> {

	/**
	 * 按所属企业的ID和产品的编号查找产品
	 * 
	 * @param enUU
	 * @param code
	 * @return
	 */
	public List<Product> findByEnUUAndCode(long enUU, String code);

}
