|
|
@@ -54,7 +54,7 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
* @param standard the standard 标准状态
|
|
|
* @return count by enuu and status
|
|
|
*/
|
|
|
- @Query(value = "select p.* from products p left join product$private pp on pp.pr_id = p.pr_id where " +
|
|
|
+ @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_standard = :standard and pp.pr_b2cenabled = :enabled", nativeQuery = true)
|
|
|
Integer getCountByEnuuAndStatusAndEnabled(@Param("enuu") Long enuu, @Param("standard") Short standard, @Param("enabled") Integer enabled);
|
|
|
|