|
@@ -115,23 +115,23 @@ public class ExcelUtil {
|
|
return flag;
|
|
return flag;
|
|
}
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
- String[] headerNames = { "项目名称", "所属类别", "参考范围" };
|
|
|
|
- String[] dataMapKeys = { "项目名称", "所属类别", "参考范围" };
|
|
|
|
- Map<String, String> map = Maps.newHashMap();
|
|
|
|
- map.put("项目名称", "大幅度发放到");
|
|
|
|
- map.put("所属类别", "大幅度发");
|
|
|
|
- map.put("参考范围", "而非");
|
|
|
|
- Map<String, String> map2 = Maps.newHashMap();
|
|
|
|
- map2.put("项目名称", "大幅度发放到");
|
|
|
|
- map2.put("所属类别", "大幅度发");
|
|
|
|
- map2.put("参考范围", "而非");
|
|
|
|
-
|
|
|
|
- List<Map<String, String>> list = Lists.newArrayList();
|
|
|
|
- list.add(map);
|
|
|
|
- list.add(map2);
|
|
|
|
-
|
|
|
|
- ExcelUtil.createExcel(false, false, "C:\\Users\\Administrator\\Desktop\\1234567", "med_qcresult_info", "fefefefef", headerNames, dataMapKeys, list);
|
|
|
|
- }
|
|
|
|
|
|
+// public static void main(String[] args) {
|
|
|
|
+// String[] headerNames = { "项目名称", "所属类别", "参考范围" };
|
|
|
|
+// String[] dataMapKeys = { "项目名称", "所属类别", "参考范围" };
|
|
|
|
+// Map<String, String> map = Maps.newHashMap();
|
|
|
|
+// map.put("项目名称", "大幅度发放到");
|
|
|
|
+// map.put("所属类别", "大幅度发");
|
|
|
|
+// map.put("参考范围", "而非");
|
|
|
|
+// Map<String, String> map2 = Maps.newHashMap();
|
|
|
|
+// map2.put("项目名称", "大幅度发放到");
|
|
|
|
+// map2.put("所属类别", "大幅度发");
|
|
|
|
+// map2.put("参考范围", "而非");
|
|
|
|
+//
|
|
|
|
+// List<Map<String, String>> list = Lists.newArrayList();
|
|
|
|
+// list.add(map);
|
|
|
|
+// list.add(map2);
|
|
|
|
+//
|
|
|
|
+// ExcelUtil.createExcel(false, false, "C:\\Users\\Administrator\\Desktop\\1234567", "med_qcresult_info", "fefefefef", headerNames, dataMapKeys, list);
|
|
|
|
+// }
|
|
|
|
|
|
}
|
|
}
|