|
|
@@ -54,8 +54,8 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
* @param standard the standard 标准状态
|
|
|
* @return count by enuu and status
|
|
|
*/
|
|
|
- @Query(value = "select count(1) 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)
|
|
|
+ @Query(value = "select count(1) from v$product$private pp where " +
|
|
|
+ "pp.pr_enuu=:enuu and pp.pr_pcmpcode is not null and pp.pr_pbranden is not null and pp.pr_standard = :standard and pp.pr_b2cenabled = :enabled", nativeQuery = true)
|
|
|
Integer getCountByEnuuAndStatusAndEnabled(@Param("enuu") Long enuu, @Param("standard") Short standard, @Param("enabled") Integer enabled);
|
|
|
|
|
|
/**
|