|
|
@ -318,6 +318,7 @@ class ParkingSpaceService extends BaseService |
|
|
* @param $start_at // 维修开始时间 |
|
|
* @param $start_at // 维修开始时间 |
|
|
* @param $end_at // 维修结束时间 |
|
|
* @param $end_at // 维修结束时间 |
|
|
* @throws Exception |
|
|
* @throws Exception |
|
|
|
|
|
* @throws CustomException |
|
|
*/ |
|
|
*/ |
|
|
public function updateStatus( |
|
|
public function updateStatus( |
|
|
$id, |
|
|
$id, |
|
|
@ -399,7 +400,7 @@ class ParkingSpaceService extends BaseService |
|
|
); |
|
|
); |
|
|
DB::commit(); |
|
|
DB::commit(); |
|
|
return $model; |
|
|
return $model; |
|
|
} catch (Exception|CustomException $e) { |
|
|
} catch (Exception $e) { |
|
|
DB::rollBack(); |
|
|
DB::rollBack(); |
|
|
throw $e; |
|
|
throw $e; |
|
|
} |
|
|
} |
|
|
|