feat: 从产品目录同步产品相关数据
This commit is contained in:
@@ -80,6 +80,12 @@ class ProductModel extends ProductBaseModel
|
||||
$query->where('category_id', '=', $value);
|
||||
}
|
||||
|
||||
// 规格型号查询
|
||||
public function scopeSpu($query, $spu)
|
||||
{
|
||||
$query->where('spu', '=', $spu);
|
||||
}
|
||||
|
||||
// 启用状态查询
|
||||
public function scopeEnabled($query)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user