|
|
@ -54,6 +54,9 @@ class ParkingSpaceImport implements ToModel, WithChunkReading |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
$floor_id = AdminFloor::query()->where('status', 1)->where( |
|
|
$floor_id = AdminFloor::query()->where('status', 1)->where( |
|
|
|
|
|
'name', |
|
|
|
|
|
$floor |
|
|
|
|
|
)->where( |
|
|
'building_floor', |
|
|
'building_floor', |
|
|
$parking_id |
|
|
$parking_id |
|
|
)->value('id'); |
|
|
)->value('id'); |
|
|
@ -63,7 +66,7 @@ class ParkingSpaceImport implements ToModel, WithChunkReading |
|
|
$region_id = AdminFloorRegion::query()->where('status', 1)->where( |
|
|
$region_id = AdminFloorRegion::query()->where('status', 1)->where( |
|
|
'floor_id', |
|
|
'floor_id', |
|
|
$floor_id |
|
|
$floor_id |
|
|
)->value('id'); |
|
|
)->where('name', $region)->value('id'); |
|
|
$attr_id = ParkingSpaceAttributes::query()->where('attributes', $attr) |
|
|
$attr_id = ParkingSpaceAttributes::query()->where('attributes', $attr) |
|
|
->value('id'); |
|
|
->value('id'); |
|
|
if (!$attr_id) { |
|
|
if (!$attr_id) { |
|
|
|