From 77251282d5a2feaa25f55e6d3da05a8bf74e952c Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 28 Apr 2026 16:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E4=BD=8D=E8=B5=84=E8=AE=AF=E8=BD=A6?= =?UTF-8?q?=E7=89=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/ParkingInformationService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Services/ParkingInformationService.php b/app/Services/ParkingInformationService.php index b3a9bf1..6ab3f54 100644 --- a/app/Services/ParkingInformationService.php +++ b/app/Services/ParkingInformationService.php @@ -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