最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

excle

IT圈 admin 37浏览 0评论

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();
发布评论

评论列表 (0)

  1. 暂无评论