|
|
@ -513,7 +513,7 @@ class CarInfoHandle |
|
|
|
Db::execute('ALTER TABLE car_info_t DISABLE KEYS;'); |
|
|
|
Db::execute('ALTER TABLE car_info_t DISABLE KEYS;'); |
|
|
|
for ($row = 2; $row <= $highestRow; $row++) { |
|
|
|
for ($row = 2; $row <= $highestRow; $row++) { |
|
|
|
$register_date = $worksheet->getCellByColumnAndRow(2, $row)->getValue(); |
|
|
|
$register_date = $worksheet->getCellByColumnAndRow(2, $row)->getValue(); |
|
|
|
if (is_numeric($register_date)) |
|
|
|
if (is_numeric($register_date) && $register_date < 99999) |
|
|
|
$register_date = date('Y-m-d', \PhpOffice\PhpSpreadsheet\Shared\Date::excelToTimestamp($register_date)); |
|
|
|
$register_date = date('Y-m-d', \PhpOffice\PhpSpreadsheet\Shared\Date::excelToTimestamp($register_date)); |
|
|
|
else |
|
|
|
else |
|
|
|
$register_date = date('Y-m-d', strtotime(trim(trim($register_date, '"')))); |
|
|
|
$register_date = date('Y-m-d', strtotime(trim(trim($register_date, '"')))); |
|
|
|