diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java index 7a6ca0ad..f1f83c04 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java @@ -737,6 +737,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { public void exportAccidentModelAnalysis(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { // 初始化一个空的结果映射 Map> result = accidentModelAnalysis(dcSdhsEventQuery); + PoiUtil.createHeading2(doc, "事故车型分析"); + if (result != null && result.size() != UniversalEnum.ZERO.getNumber()) { // 计算最大车辆类型数量 @@ -1081,6 +1083,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { name = "wordTemplate/accidentTimeMonthAnalysis.docx"; } + PoiUtil.createHeading2(doc, "事故时间分析"); + if (currentYearData != null && currentYearData.size() != UniversalEnum.ZERO.getNumber()) { @@ -1879,9 +1883,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { List exit = map.get("exit"); int rows = entrance.size(); String name = "wordTemplate/tollGateEntrance.docx"; + PoiUtil.createHeading2(doc, "收费站出入口车流量"); if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { - PoiUtil.createHeading2(doc, "收费站出入口车流量"); // 创建表格 XWPFTable table = doc.createTable(rows + 1, 3); @@ -1988,6 +1992,8 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { List exit = map.get("jinanDirection"); int rows = entrance.size(); String name = "wordTemplate/frameDataAnalysis.docx"; + PoiUtil.createHeading2(doc, "门架车流量"); + if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { // 创建表格