refactor: 产品详细兼容性信息输入及更新
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 6s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 6s
This commit is contained in:
@@ -10,6 +10,12 @@ use app\common\model\ProductCompatRelBaseModel;
|
||||
*/
|
||||
class ProductCompatRelModel extends ProductCompatRelBaseModel
|
||||
{
|
||||
// 关联兼容性数据
|
||||
public function compat()
|
||||
{
|
||||
return $this->hasOne(ProductCompatModel::class, 'id', 'compat_id');
|
||||
}
|
||||
|
||||
// 按所属产品查询
|
||||
public function scopeProductId(\think\db\Query $query, int $id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user