Browse Source

修改状态改为空置则清空车牌

master
wanghongjun 2 weeks ago
parent
commit
65bac0016b
  1. 5
      app/Services/ParkingSpaceService.php

5
app/Services/ParkingSpaceService.php

@ -640,6 +640,11 @@ class ParkingSpaceService extends BaseService
'status' => $status, 'status' => $status,
'updated_at' => date("Y-m-d H:i:s", time()) 'updated_at' => date("Y-m-d H:i:s", time())
]; ];
if (!$status) {
$update['license_plate_id'] = 0;
$update['berthing_time'] = null;
$update['recognition'] = '';
}
$model->update($update); $model->update($update);
$this->logService->logUpdated( $this->logService->logUpdated(
$model, $model,

Loading…
Cancel
Save