Commit 83b4c6de by 王军业

[读取一行做判断]

1 parent 6cfa64a6
......@@ -64,7 +64,14 @@ public class ImportExcel {
handle.setNeedHandlerFields(new String[] {"合同编号"});
importParams.setDataHanlder(handle);
importParams.setNeedVerfiy(true);
//importParams.setReadRows(0);
//importParams.setReadSingleCell(true);
//importParams.setHeadRows(1);
//importParams.setLastOfInvalidRow();
importParams.setReadRows(1);
ExcelImportResult<Map> result = ExcelImportUtil.importExcelMore(file.getInputStream(), Map.class, importParams);
System.out.println(result.getList().size());
switch(ranke) {
case "0":
columns=ColumnExample.rank0;
......
......@@ -37,7 +37,7 @@ mybatis:
logging:
level:
root: DEBUG
root: INFO
pattern:
level: INFO
console: "[financial_serv]-[%d{yyyy-MM-dd HH:mm:ss.SSS}]-%m%n"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!