belongsTo(Unit::class); } public function ownerPriceOperation() { //作业计费 return $this->belongsTo(OwnerPriceOperation::class,"owner_price_operation_id","id"); } /* 格式化依据静态参数,在调用前设置 */ public function getFeatureFormatAttribute() { if ($this->strategy == '默认')return "/"; return app("FeatureService")->formatFeature(self::$features,$this->feature,self::$columnMapping); } }