diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 1296f0af..245e4a64 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -914,8 +914,7 @@ class ProductRepository extends BaseRepository public function getList(?int $merId, array $where, int $page, int $limit) { $query = $this->dao->search($merId, $where)->with(['merCateId.category', 'storeCategory', 'brand', 'attrValue']); - $count = $query->fetchSql(true)->count(); - halt($count); + $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->filed)->select(); $data->append(['us_status']);