hasMany(OwnerPriceOperationItem::class,"owner_price_operation_id","id"); } public function ownerPriceOperationOwners() { //货主 return $this->belongsToMany(Owner::class,"owner_price_operation_owner","owner_price_operation_id","owner_id"); } public function getFeatureFormatAttribute() { if ($this->strategy == '默认')return "/"; return app("FeatureService")->formatFeature(self::$features,$this->feature,self::$columnMapping); } }