|
|
@ -215,11 +215,12 @@ class Goods extends BaseModel |
|
|
|
$sort['goods_sales'] = 'desc'; |
|
|
|
$sort['goods_sales'] = 'desc'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$field = $this->getAliasFields($this->name, ['content']); |
|
|
|
|
|
|
|
$field[] = 'selling_point'; |
|
|
|
// 执行查询 |
|
|
|
// 执行查询 |
|
|
|
$list = $query->with(['images.file']) |
|
|
|
$list = $query->with(['images.file']) |
|
|
|
->alias($this->name) |
|
|
|
->alias($this->name) |
|
|
|
->field($this->getAliasFields($this->name, ['content'])) |
|
|
|
->field($field) |
|
|
|
->where('is_delete', '=', 0) |
|
|
|
->where('is_delete', '=', 0) |
|
|
|
->order($sort) |
|
|
|
->order($sort) |
|
|
|
->paginate($listRows); |
|
|
|
->paginate($listRows); |
|
|
|