belongsTo(OwnerFeeDetail::class); } public function ownerFeeDetailLogistic(): BelongsTo { return $this->belongsTo(OwnerFeeDetailLogistic::class, 'logistic_bill', 'logistic_bill'); } public function logistic(): BelongsTo { return $this->belongsTo(Logistic::class); } /** * 根据参数条件删除 * @param $data */ public static function uDelete($data) { self::query() ->where('owner_fee_detail_id', $data['owner_fee_detail_id']) ->where('logistic_bill', $data['logistic_bill']) ->where('initial_weight', $data['initial_weight']) ->where('additional_weight', $data['additional_weight']) ->where('logistic_id', $data['logistic_id']) ->where('owner_id', $data['owner_id']) ->where('additional_weigh_weight', $data['additional_weigh_weight']) ->delete(); } }