From 8300dc9c1b386c953befa96a63800143248e9664 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sat, 14 Nov 2020 17:12:34 +0800
Subject: [PATCH] modify
---
src/test/java/com/xcong/excoin/SRCTest.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/SRCTest.java b/src/test/java/com/xcong/excoin/SRCTest.java
index 5861ad1..20f88f0 100644
--- a/src/test/java/com/xcong/excoin/SRCTest.java
+++ b/src/test/java/com/xcong/excoin/SRCTest.java
@@ -51,7 +51,9 @@
@Test
public void addressInsertTest() throws IOException {
- File file = new File("/Users/helius/Desktop/src20.xls");
+// String src = "/Users/helius/Desktop/src20.xls";
+ String src = "C:/Users/wzy19/Desktop/ace2.xls";
+ File file = new File(src);
FileInputStream input = new FileInputStream(file);
Workbook wb = null;
@@ -63,7 +65,7 @@
Sheet sheet = wb.getSheetAt(0);
int lastRowNum = sheet.getLastRowNum();
- for (int i = 0; i < lastRowNum; i++) {
+ for (int i = 0; i <= lastRowNum; i++) {
Row row = sheet.getRow(i);
Cell cell = row.getCell(0);
TrcAddressEntity addressEntity = new TrcAddressEntity();
--
Gitblit v1.9.1