Browse Source

物料列表增加器件判定是否存在的方法

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7271 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
5c73d2ea71
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/main/java/com/uas/platform/b2b/dao/ProductDao.java

+ 9 - 0
src/main/java/com/uas/platform/b2b/dao/ProductDao.java

@@ -24,4 +24,13 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
 	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
 	public List<Product> findByEnUUAndCode(long enUU, String code);
 
+	/**
+	 * 通过营业执照和器件型号判断是否存在
+	 * 
+	 * @param enuu
+	 * @param cmpUuId
+	 * @return
+	 */
+	public Product findByEnUUAndCmpUuId(Long enUU, String cmpUuId);
+
 }