From 0224f6113a669845fb3455cadb381a6931e9c508 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 29 Nov 2023 14:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/repositories/store/product/ProductRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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']);