数据导入增加来源

master
zcstatham 2 years ago
parent a8e5a4ef59
commit fdea56d2a3
  1. 5
      extend/service/CarInfoHandle.php

@ -11,13 +11,9 @@ use app\model\PeerPhoneT;
use app\model\RepeatFrameT; use app\model\RepeatFrameT;
use excel\Excel; use excel\Excel;
use file\FileSystem; use file\FileSystem;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use SpreadsheetReader;
use think\facade\Db; use think\facade\Db;
use think\facade\Env;
class CarInfoHandle class CarInfoHandle
{ {
@ -499,6 +495,7 @@ class CarInfoHandle
'purchase_price' => $worksheet->getCellByColumnAndRow(10, $row)->getValue(), 'purchase_price' => $worksheet->getCellByColumnAndRow(10, $row)->getValue(),
'insurer1_date' => $worksheet->getCellByColumnAndRow(11, $row)->getValue(), 'insurer1_date' => $worksheet->getCellByColumnAndRow(11, $row)->getValue(),
'insurer2_date' => $worksheet->getCellByColumnAndRow(12, $row)->getValue(), 'insurer2_date' => $worksheet->getCellByColumnAndRow(12, $row)->getValue(),
'source' => $id,
'create_timestamp' => $now, 'create_timestamp' => $now,
'update_timestamp' => $now 'update_timestamp' => $now
]; ];

Loading…
Cancel
Save