diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index c41f002a..df860e75 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -871,7 +871,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']); + $query = $this->dao->search($merId, $where)->with(['merCateId.category', 'storeCategory', 'brand', 'attrValue']); $count = $query->count(); $data = $query->page($page, $limit)->setOption('field', [])->field($this->filed)->select();