Browse Source

维修管理删除优化

master
wanghongjun 14 hours ago
parent
commit
1b1e82fa30
  1. 8
      app/Services/ParkingSpaceService.php

8
app/Services/ParkingSpaceService.php

@ -623,9 +623,11 @@ class ParkingSpaceService extends BaseService
}
// 判断车位状态是否在维修
$item = ParkingSpace::query()->find($space_id);
if ($item['status'] == 2 && $is_now) {
// 删除维修数据这撤销
$this->updateRepairStatus($space_id, 0);
if ($item) {
if ($item['status'] == 2 && $is_now) {
// 删除维修数据这撤销
$this->updateRepairStatus($space_id, 0);
}
}
}
}

Loading…
Cancel
Save