feat: 新增产品数据导出接口

This commit is contained in:
2025-02-12 16:33:22 +08:00
parent cb11607279
commit 96127e90c6
4 changed files with 177 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ class ProductRelatedModel extends ProductRelatedBaseModel
// 根据产品ID查询
public function scopeProductId($query, $id)
{
$query->where('product_id', $id);
if (is_array($id)) {
$query->where('product_id', 'in', $id);
return;
}
$query->where('product_id', '=', $id);
}
}