Browse Source

增加spec关联

master
李可松 4 years ago
parent
commit
ac7d60899e
  1. 5
      app/Models/IndustryOrder.php

5
app/Models/IndustryOrder.php

@ -24,4 +24,9 @@ class IndustryOrder extends BaseModel
{
return $this->belongsTo(IndustryProduct::class);
}
public function spec()
{
return $this->hasOne(IndustryProductSpec::class, 'id', 'industry_product_spec_id');
}
}
Loading…
Cancel
Save