Browse Source

车牌导入,VIP车牌导入、白名单车牌导入车牌验证2

master
wanghongjun 3 weeks ago
parent
commit
07dd46968e
  1. 1
      app/Imports/ParkingLicensePlateImport.php
  2. 1
      app/Imports/ParkingVipListImport.php
  3. 1
      app/Imports/ParkingWhitelistImport.php

1
app/Imports/ParkingLicensePlateImport.php

@ -48,6 +48,7 @@ class ParkingLicensePlateImport implements ToModel
); );
if ($error_str) { if ($error_str) {
$this->error[] = $error_str; $this->error[] = $error_str;
return;
} }
$where = [ $where = [
'number' => $number, 'number' => $number,

1
app/Imports/ParkingVipListImport.php

@ -47,6 +47,7 @@ class ParkingVipListImport implements ToModel
); );
if ($error_str) { if ($error_str) {
$this->error[] = $error_str; $this->error[] = $error_str;
return;
} }
$license_id = $licensePlateService->createLicenseId($license); $license_id = $licensePlateService->createLicenseId($license);
if (!$license_id) { if (!$license_id) {

1
app/Imports/ParkingWhitelistImport.php

@ -45,6 +45,7 @@ class ParkingWhitelistImport implements ToModel, WithChunkReading
); );
if ($error_str) { if ($error_str) {
$this->error[] = $error_str; $this->error[] = $error_str;
return;
} }
$parking_name = $row[2] ?? ''; $parking_name = $row[2] ?? '';
if (empty($parking_name)) { if (empty($parking_name)) {

Loading…
Cancel
Save