This commit is contained in:
mkm 2023-11-29 14:35:27 +08:00
parent 8a0a839066
commit 0224f6113a

View File

@ -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']);