|
|
@@ -102,7 +102,7 @@ class Owner extends Model
|
|
|
}
|
|
|
public function ownerStoragePriceModels()
|
|
|
{ //仓储计费
|
|
|
- $query = OwnerPriceExpress::query()->select("target_id")
|
|
|
+ $query = OwnerStoragePriceModel::query()->select("target_id")
|
|
|
->whereNotNull("operation")->where("operation","!=","")
|
|
|
->whereNotNull("target_id")->where("target_id","!=","");
|
|
|
return $this->belongsToMany(OwnerStoragePriceModel::class,"owner_storage_price_model_owner","owner_id","owner_storage_price_model_id")
|
|
|
@@ -132,7 +132,7 @@ class Owner extends Model
|
|
|
}
|
|
|
public function ownerPriceLogistics()
|
|
|
{ //物流计费
|
|
|
- $query = OwnerPriceExpress::query()->select("target_id")
|
|
|
+ $query = OwnerPriceLogistic::query()->select("target_id")
|
|
|
->whereNotNull("operation")->where("operation","!=","")
|
|
|
->whereNotNull("target_id")->where("target_id","!=","");
|
|
|
return $this->belongsToMany(OwnerPriceLogistic::class,"owner_price_logistic_owner","owner_id","owner_price_logistic_id")
|
|
|
@@ -142,7 +142,7 @@ class Owner extends Model
|
|
|
}
|
|
|
public function ownerPriceDirectLogistics()
|
|
|
{ //直发车计费
|
|
|
- $query = OwnerPriceExpress::query()->select("target_id")
|
|
|
+ $query = OwnerPriceDirectLogistic::query()->select("target_id")
|
|
|
->whereNotNull("operation")->where("operation","!=","")
|
|
|
->whereNotNull("target_id")->where("target_id","!=","");
|
|
|
return $this->belongsToMany(OwnerPriceDirectLogistic::class,"owner_price_direct_logistic_owner","owner_id","owner_price_direct_logistic_id")
|