From 8fbaa2a04d3f730f549f613e9f0711fbd6c8e9ca Mon Sep 17 00:00:00 2001
From: jhz <jinghz@oceic.com>
Date: 星期四, 16 六月 2022 09:21:39 +0800
Subject: [PATCH] 流转卡报错修改

---
 WebAPI/Controllers/SCGL/日计划管理/JIT_DayPlanPlatFormImportController.cs |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs"
index 3d73e5b..2406df5 100644
--- "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs"
+++ "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs"
@@ -36,14 +36,13 @@
                 file.SaveAs(ExcelPath);
 
                 NpoiHelper np = new NpoiHelper();
-                DataSet ExcelDs = np.ReadExcel(ExcelPath, 1);
+                DataSet ExcelDs = np.ReadExcel(ExcelPath, 1,1,"0");
 
                 //鍒犻櫎鏂囦欢
                 File.Delete(ExcelPath);
 
                 //鍒涘缓涓存椂琛�
                 DataTable tb2 = new DataTable("dt2");
-                DataTable tb3 = new DataTable("dt3");
 
                 //娣诲姞鍒楀悕
                 for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++)
@@ -71,8 +70,6 @@
                     }
                     tb2.Rows.Add(row);
                 }
-
-                ExcelDs.Tables.Add(tb2);
 
                 var error = "";
                 var ErrorResult = "";

--
Gitblit v1.9.1