显示云商品
This commit is contained in:
parent
ecaad9b075
commit
e9acd6ccd9
@ -165,6 +165,12 @@ class SpuRepository extends BaseRepository
|
||||
|
||||
$count = $query->count();
|
||||
// $Sql=$query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->fetchSql(true);
|
||||
$query->with([
|
||||
'merchant' => function ($query) {
|
||||
$query->field($this->merchantFiled)->with(['type_name']);
|
||||
},
|
||||
'issetCoupon',
|
||||
]);
|
||||
$list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->select();
|
||||
$append = ['stop_time','svip_price','show_svip_info','is_svip_price'];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user