|
@ -265,7 +265,7 @@ public class WordController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 交通管制情况 |
|
|
* @Description 当月交通管制情况 |
|
|
* |
|
|
* |
|
|
* @author liuwenge |
|
|
* @author liuwenge |
|
|
* @date 2024/3/26 17:36 |
|
|
* @date 2024/3/26 17:36 |
|
@ -424,7 +424,7 @@ public class WordController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 交通事故 |
|
|
* @Description 当月交通事故 |
|
|
* |
|
|
* |
|
|
* @author liuwenge |
|
|
* @author liuwenge |
|
|
* @date 2024/3/27 20:06 |
|
|
* @date 2024/3/27 20:06 |
|
@ -661,7 +661,7 @@ public class WordController { |
|
|
List<Map<String, Object>> thisYearHZ = result.get("1"); |
|
|
List<Map<String, Object>> thisYearHZ = result.get("1"); |
|
|
List<Map<String, Object>> lastYearHZ = result.get("3"); |
|
|
List<Map<String, Object>> lastYearHZ = result.get("3"); |
|
|
|
|
|
|
|
|
PoiUtil.createHeading2(doc, "全路段实时车流量-济南方向"); |
|
|
PoiUtil.createHeading2(doc, "当天全路段实时车流量-济南方向"); |
|
|
|
|
|
|
|
|
XWPFTable table = doc.createTable(15,3); |
|
|
XWPFTable table = doc.createTable(15,3); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -704,7 +704,7 @@ public class WordController { |
|
|
sheet.getRow(i+UniversalEnum.ONE.getNumber()).getCell(UniversalEnum.TWO.getNumber()).setCellValue(Long.parseLong(lastYearJN.get(i).get("totalFlow").toString())); |
|
|
sheet.getRow(i+UniversalEnum.ONE.getNumber()).getCell(UniversalEnum.TWO.getNumber()).setCellValue(Long.parseLong(lastYearJN.get(i).get("totalFlow").toString())); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
PoiUtil.wordExportChar(chart, "全路段实时车流量-济南方向", singleBarSeriesNames,sheet ); |
|
|
PoiUtil.wordExportChar(chart, "当天全路段实时车流量-济南方向", singleBarSeriesNames,sheet ); |
|
|
|
|
|
|
|
|
// 追加到同一个Word文档中
|
|
|
// 追加到同一个Word文档中
|
|
|
mergeChart(chart,doc); |
|
|
mergeChart(chart,doc); |
|
@ -720,7 +720,7 @@ public class WordController { |
|
|
//换行
|
|
|
//换行
|
|
|
createLineBreak(doc); |
|
|
createLineBreak(doc); |
|
|
|
|
|
|
|
|
PoiUtil.createHeading2(doc, "全路段实时车流量-菏泽方向"); |
|
|
PoiUtil.createHeading2(doc, "当天全路段实时车流量-菏泽方向"); |
|
|
|
|
|
|
|
|
XWPFTable tableHZ = doc.createTable(15,3); |
|
|
XWPFTable tableHZ = doc.createTable(15,3); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -762,7 +762,7 @@ public class WordController { |
|
|
sheet.getRow(i+UniversalEnum.ONE.getNumber()).getCell(UniversalEnum.TWO.getNumber()).setCellValue(Long.parseLong(lastYearHZ.get(i).get("totalFlow").toString())); |
|
|
sheet.getRow(i+UniversalEnum.ONE.getNumber()).getCell(UniversalEnum.TWO.getNumber()).setCellValue(Long.parseLong(lastYearHZ.get(i).get("totalFlow").toString())); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
PoiUtil.wordExportChar(chart, "全路段实时车流量-菏泽方向", singleBarSeriesNames,sheet ); |
|
|
PoiUtil.wordExportChar(chart, "当天全路段实时车流量-菏泽方向", singleBarSeriesNames,sheet ); |
|
|
|
|
|
|
|
|
// 追加到同一个Word文档中
|
|
|
// 追加到同一个Word文档中
|
|
|
mergeChart(chart,doc); |
|
|
mergeChart(chart,doc); |
|
@ -815,7 +815,7 @@ public class WordController { |
|
|
lastYearJNData = lastYearJN.stream().collect(Collectors.groupingBy(item -> item.get("statisticalHour"))); |
|
|
lastYearJNData = lastYearJN.stream().collect(Collectors.groupingBy(item -> item.get("statisticalHour"))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
PoiUtil.createHeading2(doc, "车流量时段分析-济南方向"); |
|
|
PoiUtil.createHeading2(doc, "当天车流量时段分析-济南方向"); |
|
|
|
|
|
|
|
|
XWPFTable table = doc.createTable(25,3); |
|
|
XWPFTable table = doc.createTable(25,3); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -879,7 +879,7 @@ public class WordController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
PoiUtil.wordExportChar(chart, "车流量时段分析-济南方向", singleBarSeriesNames,sheet ); |
|
|
PoiUtil.wordExportChar(chart, "当天车流量时段分析-济南方向", singleBarSeriesNames,sheet ); |
|
|
|
|
|
|
|
|
// 追加到同一个Word文档中
|
|
|
// 追加到同一个Word文档中
|
|
|
mergeChart(chart,doc); |
|
|
mergeChart(chart,doc); |
|
@ -909,7 +909,7 @@ public class WordController { |
|
|
lastYearHZData = lastYearHZ.stream().collect(Collectors.groupingBy(item -> item.get("statisticalHour"))); |
|
|
lastYearHZData = lastYearHZ.stream().collect(Collectors.groupingBy(item -> item.get("statisticalHour"))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
PoiUtil.createHeading2(doc, "车流量时段分析-菏泽方向"); |
|
|
PoiUtil.createHeading2(doc, "当天车流量时段分析-菏泽方向"); |
|
|
|
|
|
|
|
|
XWPFTable tableHZ = doc.createTable(25,3); |
|
|
XWPFTable tableHZ = doc.createTable(25,3); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -973,7 +973,7 @@ public class WordController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
PoiUtil.wordExportChar(chart, "车流量时段分析-菏泽方向", singleBarSeriesNames,sheet ); |
|
|
PoiUtil.wordExportChar(chart, "当天车流量时段分析-菏泽方向", singleBarSeriesNames,sheet ); |
|
|
|
|
|
|
|
|
// 追加到同一个Word文档中
|
|
|
// 追加到同一个Word文档中
|
|
|
mergeChart(chart,doc); |
|
|
mergeChart(chart,doc); |
|
|