Commit e0d4a205 by 邓实川

测试导入

parent a863d610
......@@ -1055,14 +1055,14 @@ public class CrmController {
try {
time = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS");
filePath = FileHelper.downLoadFromUrl(url, time + ".xls", realPath);
System.err.println(filePath);
} catch (IOException e) {
e.printStackTrace();
}
System.err.println();
// 从文件中读取Excel为ExcelReader
ExcelReader reader;
// 从流中读取Excel为ExcelReader(比如从ClassPath中读取Excel文件)
reader = ExcelUtil.getReader(ResourceUtil.getStream("crm-excel/"+time+".xls"));
reader = ExcelUtil.getReader(ResourceUtil.getStream("/data/"+filePath));
reader.addHeaderAlias("*客户名称(必填)", "clientName");
reader.addHeaderAlias("*所属分组(必填)", "belongGroupName");
reader.addHeaderAlias("行业", "industryName");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment