|
|
@@ -163,11 +163,11 @@ class TestController extends Controller
|
|
|
$owners = Owner::query()->withCount(["ownerPriceDirectLogistics","ownerPriceLogistics","ownerPriceExpresses","ownerPriceOperations","ownerStoragePriceModels"])->get();
|
|
|
foreach ($owners as $owner){
|
|
|
$arr = [];
|
|
|
- if ($owner->owner_storage_price_models_count > 0)$arr[] = "0";
|
|
|
- if ($owner->owner_price_operations_count > 0)$arr[] = "1";
|
|
|
- if ($owner->owner_price_expresses_count > 0)$arr[] = "2";
|
|
|
- if ($owner->owner_price_logistics_count > 0)$arr[] = "3";
|
|
|
- if ($owner->owner_price_direct_logistics_count > 0)$arr[] = "4";
|
|
|
+ if ($owner->owner_storage_price_models_count > 0)$arr[] = 0;
|
|
|
+ if ($owner->owner_price_operations_count > 0)$arr[] = 1;
|
|
|
+ if ($owner->owner_price_expresses_count > 0)$arr[] = 2;
|
|
|
+ if ($owner->owner_price_logistics_count > 0)$arr[] = 3;
|
|
|
+ if ($owner->owner_price_direct_logistics_count > 0)$arr[] = 4;
|
|
|
$owner->update(["relevance"=>json_encode($arr)]);
|
|
|
}
|
|
|
}
|