|
|
|
@ -48,6 +48,7 @@ class ParkingInformationService extends BaseService |
|
|
|
|
|
|
|
$space_id = 0; |
|
|
|
$floor_region_id = 0; |
|
|
|
// 通过车位类型查询楼层 区域 车位 |
|
|
|
if ($space_type_id) { |
|
|
|
$parkingSpaceWhere = [ |
|
|
|
'space_type_id' => $space_type_id, |
|
|
|
@ -68,6 +69,7 @@ class ParkingInformationService extends BaseService |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 通过车位查询数据 |
|
|
|
if ($space_id) { |
|
|
|
$space = ParkingSpace::query()->where('status', 0) |
|
|
|
->where('license_plate_id', 0)->first( |
|
|
|
@ -87,7 +89,8 @@ class ParkingInformationService extends BaseService |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!$space_type_id) { |
|
|
|
// 通过车位类型 创建车牌 |
|
|
|
if ($space_type_id) { |
|
|
|
$createData = [ |
|
|
|
'number' => $license_plate, |
|
|
|
'space_type_id' => $space_type_id |
|
|
|
|