Browse Source

企业物料库bug修改4

wangdy 7 years ago
parent
commit
a1948de798

+ 9 - 0
src/main/java/com/uas/ps/product/repository/ProductDao.java

@@ -51,6 +51,15 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
      * @return
      */
     List<Product> findByEnUUAndCmpCodeAndBrand(Long enUU, String cmpCode, String brand);
+
+    /**
+     * 根据物料所属enUU、原产型号品牌查询物料
+     * @param enUU
+     * @param cmpCode
+     * @param brand
+     * @return
+     */
+    List<Product> findByEnUUAndPCmpCodeAndPBrandEn(Long enUU, String cmpCode, String brand);
     /**
      * 通过企业UU,物料名称、规格、品牌(非标准)
      *

+ 5 - 0
src/main/java/com/uas/ps/product/service/impl/ProductServiceImpl.java

@@ -334,6 +334,11 @@ public class ProductServiceImpl implements ProductService {
         return productDao.findByEnUUAndCmpCodeAndBrand(enUU,cmpCode,brand);
     }
 
+    @Override
+    public List<Product> findByEnUUAndPCmpCodeAndPBrandEn(Long enUU, String pCmpCode, String pBrandEn) {
+        return productDao.findByEnUUAndPCmpCodeAndPBrandEn(enUU,pCmpCode,pBrandEn);
+    }
+
     /**
      * 物料下载成功,更新下载状态
      *