摘要:
List<Map<String, Object>> dataList = new ArrayList<>(); Integer total = dataList.stream().mapToInt(e -> Integer.parseInt(e.get("num").toString())).sum 阅读全文
摘要:
XWPFDocument document = new XWPFDocument(); XWPFParagraph p = document.createParagraph(); p.setAlignment(ParagraphAlignment.CENTER); //段落居中 XWPFRun r 阅读全文