|
|
@ -187,6 +187,7 @@ class ParkingPatternService extends BaseService |
|
|
// 验证 |
|
|
// 验证 |
|
|
$parking_space_id = ParkingSpace::getValueId($parking_space_number); |
|
|
$parking_space_id = ParkingSpace::getValueId($parking_space_number); |
|
|
if (empty($parking_space_id)) { |
|
|
if (empty($parking_space_id)) { |
|
|
|
|
|
DB::rollBack(); |
|
|
return 'import17'; |
|
|
return 'import17'; |
|
|
} |
|
|
} |
|
|
$parking_space_type_id = ParkingSpaceType::getValueId( |
|
|
$parking_space_type_id = ParkingSpaceType::getValueId( |
|
|
@ -195,6 +196,7 @@ class ParkingPatternService extends BaseService |
|
|
if (empty($parking_space_type_id)) { |
|
|
if (empty($parking_space_type_id)) { |
|
|
$parking_space_type_id = AdminTranslationService::getTypeId(1, $parking_space_type); |
|
|
$parking_space_type_id = AdminTranslationService::getTypeId(1, $parking_space_type); |
|
|
if (!$parking_space_type_id) { |
|
|
if (!$parking_space_type_id) { |
|
|
|
|
|
DB::rollBack(); |
|
|
return 'import18'; |
|
|
return 'import18'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|