Skip to content

Commit dcc0074

Browse files
committed
修复错误
1 parent c7ec412 commit dcc0074

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

core/src/main/java/info/xiaomo/core/untils/ExcelUtil.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package info.xiaomo.core.untils;
22

3-
import info.xiaomo.core.other.CountryModel;
43
import org.apache.poi.hssf.usermodel.*;
54
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
65

@@ -13,18 +12,18 @@
1312
import java.util.List;
1413

1514
public class ExcelUtil {
16-
17-
public static void main(String[] args) throws Exception {
18-
List<List<String>> listData = getListData("E:\\thinkpage_cities.xls", 1);
19-
List<CountryModel> list = new ArrayList<>();
20-
for (List<String> listDatum : listData) {
21-
CountryModel model = new CountryModel();
22-
model.setCityName(listDatum.get(0));
23-
model.setCityNameEN(listDatum.get(1));
24-
list.add(model);
25-
}
26-
System.out.println(list);
27-
}
15+
//
16+
// public static void main(String[] args) throws Exception {
17+
// List<List<String>> listData = getListData("E:\\thinkpage_cities.xls", 1);
18+
// List<CountryModel> list = new ArrayList<>();
19+
// for (List<String> listDatum : listData) {
20+
// CountryModel model = new CountryModel();
21+
// model.setCityName(listDatum.get(0));
22+
// model.setCityNameEN(listDatum.get(1));
23+
// list.add(model);
24+
// }
25+
// System.out.println(list);
26+
// }
2827

2928
public static List<List<String>> getListData(String path, int ignoreRows) throws IOException {
3029
File file = new File(path);

0 commit comments

Comments
 (0)