feat: 产品更新时可编辑兼容性数据

This commit is contained in:
2026-07-08 17:26:18 +08:00
parent 3545b82015
commit 36261488b4
2 changed files with 20 additions and 1 deletions

View File

@@ -10,5 +10,9 @@ use app\common\model\ProductCompatRelBaseModel;
*/
class ProductCompatRelModel extends ProductCompatRelBaseModel
{
//
// 按所属产品查询
public function scopeProductId(\think\db\Query $query, int $id)
{
$query->where('product_id', '=', $id);
}
}