excle
FileInputStream file = new FileInputStream("./conf/WEB-INF/xxx.xls");Workbook wb = Workbook.getWorkbook(file); // 从文件流中获取Excel工作区对象(WorkBook)
Sheet sheet = wb.getSheet(0); // 从工作区中取得页(Sheet)
Cell cell = null;
Map<String,Object> yxjlMap = new HashMap<String,Object> ();
yxjlMap.put("POST_ID", POST_ID);
yxjlMap.put("FLIGHT_ID", FLIGHT_ID);
yxjlMap.put("CLGC", CLGC);
yxjlMap.put("PD", PD);
for (int i = 1; i < sheet.getRows(); i++) { // 循环打印Excel表中的内容
for (int j = 0; j < sheet.getColumns(); j++) {
cell = sheet.getCell(j, i);
canshu = cell.getContents();
excle
FileInputStream file = new FileInputStream("./conf/WEB-INF/xxx.xls");Workbook wb = Workbook.getWorkbook(file); // 从文件流中获取Excel工作区对象(WorkBook)
Sheet sheet = wb.getSheet(0); // 从工作区中取得页(Sheet)
Cell cell = null;
Map<String,Object> yxjlMap = new HashMap<String,Object> ();
yxjlMap.put("POST_ID", POST_ID);
yxjlMap.put("FLIGHT_ID", FLIGHT_ID);
yxjlMap.put("CLGC", CLGC);
yxjlMap.put("PD", PD);
for (int i = 1; i < sheet.getRows(); i++) { // 循环打印Excel表中的内容
for (int j = 0; j < sheet.getColumns(); j++) {
cell = sheet.getCell(j, i);
canshu = cell.getContents();