Browse Source

导出标题

develop
王兴琳 3 months ago
parent
commit
3bec455886
  1. 8
      zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

8
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<String, Map<String, Integer>> 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<DcTollStationStatisticsDataMap> 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<TrafficFlowStatisticsMap> exit = map.get("jinanDirection");
int rows = entrance.size();
String name = "wordTemplate/frameDataAnalysis.docx";
PoiUtil.createHeading2(doc, "门架车流量");
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) {
// 创建表格

Loading…
Cancel
Save