|
|
|
@ -36,12 +36,16 @@ class ParkingVipListImport implements ToModel |
|
|
|
$this->index += 1; |
|
|
|
$license = $row[1] ?? ''; |
|
|
|
if (empty($license)) { |
|
|
|
//$this->error[] = imports_error($this->index, 'import33'); |
|
|
|
$this->error[] = imports_error($this->index, 'import33'); |
|
|
|
return; |
|
|
|
} |
|
|
|
$license_id = (new ParkingLicensePlateService( |
|
|
|
$this->logService |
|
|
|
))->createLicenseId($license); |
|
|
|
if (!$license_id) { |
|
|
|
$this->error[] = imports_error($this->index, 'import38'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (ParkingVipList::query()->where('license_id', $license_id) |
|
|
|
->exists() |
|
|
|
) { |
|
|
|
|