|
|
|
@ -23,10 +23,15 @@ class ParkingSpaceRepairService extends BaseService |
|
|
|
public function getItem($item) |
|
|
|
{ |
|
|
|
$ParkingSpace = ParkingSpace::query()->find($item['space_id']); |
|
|
|
$item['parking_space_number'] = ''; |
|
|
|
$item['floor'] = ''; |
|
|
|
$item['parking'] = ''; |
|
|
|
if ($ParkingSpace) { |
|
|
|
$item['parking_space_number'] = $ParkingSpace['number']; |
|
|
|
$Floor = AdminFloor::getFirst($ParkingSpace['floor_id']); |
|
|
|
$item['floor'] = $Floor['name']; |
|
|
|
$item['parking'] = Parking::getName($Floor['building_floor']); |
|
|
|
} |
|
|
|
$item['admin_user'] = AdminUsers::getUsername($item['admin_user_id']); |
|
|
|
$syncStatusArr = $this->getSyncStatus(); |
|
|
|
$item['sync_status_str'] = $syncStatusArr[$item['sync_status']] ?? ''; |
|
|
|
|