Commit 83b4c6de by 王军业

[读取一行做判断]

1 parent 6cfa64a6
...@@ -64,7 +64,14 @@ public class ImportExcel { ...@@ -64,7 +64,14 @@ public class ImportExcel {
handle.setNeedHandlerFields(new String[] {"合同编号"}); handle.setNeedHandlerFields(new String[] {"合同编号"});
importParams.setDataHanlder(handle); importParams.setDataHanlder(handle);
importParams.setNeedVerfiy(true); 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); ExcelImportResult<Map> result = ExcelImportUtil.importExcelMore(file.getInputStream(), Map.class, importParams);
System.out.println(result.getList().size());
switch(ranke) { switch(ranke) {
case "0": case "0":
columns=ColumnExample.rank0; columns=ColumnExample.rank0;
......
...@@ -37,7 +37,7 @@ mybatis: ...@@ -37,7 +37,7 @@ mybatis:
logging: logging:
level: level:
root: DEBUG root: INFO
pattern: pattern:
level: INFO level: INFO
console: "[financial_serv]-[%d{yyyy-MM-dd HH:mm:ss.SSS}]-%m%n" 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!