From 77d82331a374bf8ec91a77339fc14ad1aa606719 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Wed, 16 Oct 2019 11:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=89=B9=E9=87=8F=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=AF=BB=E5=8F=96=E6=A0=BC=E5=BC=8F=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/FinanceController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/controllers/FinanceController.php b/frontend/controllers/FinanceController.php index 8567a10..5606036 100644 --- a/frontend/controllers/FinanceController.php +++ b/frontend/controllers/FinanceController.php @@ -6379,19 +6379,19 @@ class FinanceController extends \frontend\controllers\UserBaseController for ($i = 2; $i <= $rowCount; $i++) { // echo $i.'/'.$rowCount."..."; $cell = $currentSheet->getCellByColumnAndRow(0, $i); - $car_no = $cell->getValue(); + $car_no = $cell->getFormattedValue(); // $cell = $currentSheet->getCellByColumnAndRow(1, $i); // $car_man = $cell->getValue(); $cell = $currentSheet->getCellByColumnAndRow(1, $i); - $factory_model = $cell->getValue();//$data[$i][3]; + $factory_model = $cell->getFormattedValue();//$data[$i][3]; $cell = $currentSheet->getCellByColumnAndRow(2, $i); - $engine_no = $cell->getValue();//$data[$i][2]; + $engine_no = $cell->getFormattedValue();//$data[$i][2]; // var_dump($cars); $cell = $currentSheet->getCellByColumnAndRow(3, $i); - $car_frame_no = $cell->getValue();//$data[$i][1]; + $car_frame_no = $cell->getFormattedValue();//$data[$i][1]; // var_dump($car_frame_no); $cell = $currentSheet->getCellByColumnAndRow(4, $i); - $register_date = $cell->getValue();//$data[$i][8]; + $register_date = $cell->getFormattedValue(); $cell = $currentSheet->getCellByColumnAndRow(5, $i); $company = $cell->getValue();//$data[$i][8]; $cell = $currentSheet->getCellByColumnAndRow(6, $i);