feat: 从产品目录同步产品相关数据

This commit is contained in:
2025-07-02 10:42:48 +08:00
parent 401658981c
commit c08900c694
5 changed files with 235 additions and 71 deletions

View File

@@ -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)
{