|
|
@@ -137,8 +137,9 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
* @param standard 是否是标准的信息
|
|
|
* @return 返回所属该公司的产品信息
|
|
|
*/
|
|
|
- @Query(value = "select p from Product p where p.enUU = :enuu and p.standard = :standard")
|
|
|
- List<Product> findProductByEnuuAndStandard(@Param("enuu") Long enuu, @Param("standard") Integer standard);
|
|
|
+ @Query(value = "select p from products p left join product$private pp on pp.pr_id = p.pr_id where " +
|
|
|
+ "p.pr_enuu=:enuu and p.pr_pcmpcode is not null and p.pr_pbranden is not null and p.pr_standard = :standard and pp.pr_b2cenabled = :enabled", nativeQuery = true)
|
|
|
+ List<Product> findProductByEnuuAndStandardAndEnabled(@Param("enuu") Long enuu, @Param("standard") Integer standard, @Param("enabled") Integer enabled);
|
|
|
|
|
|
|
|
|
/**
|