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

This commit is contained in:
2025-02-12 16:33:22 +08:00
parent 487ecdd0e8
commit 48dcc7acf7
4 changed files with 177 additions and 2 deletions

View File

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