|
|
@ -420,14 +420,14 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
|
|
|
|
Map<String, Integer> map =accidentSectionAnalysis(dcSdhsEventQuery); |
|
|
|
// String direction = dcSdhsEventQuery.getDirection();//方向
|
|
|
|
String title="事故路段分布图"; |
|
|
|
String title="事故路段分布"; |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
// if ("广州方向".equals(direction)){
|
|
|
|
// title="事故路段分布图-广州方向";
|
|
|
|
// }else {
|
|
|
|
// title="事故路段分布图-济南方向";
|
|
|
|
// }
|
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()){ |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
XWPFTable table = doc.createTable(map.size()+1,2); |
|
|
|
//列宽自动分割
|
|
|
|
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW(); |
|
|
@ -481,14 +481,14 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
public void accidentTypeAnalysisExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
Map<String, Integer> map =accidentTypeAnalysis(dcSdhsEventQuery); |
|
|
|
// String direction = dcSdhsEventQuery.getDirection();//方向
|
|
|
|
String title="事件类型分布图"; |
|
|
|
String title="事件类型分布"; |
|
|
|
// if ("广州方向".equals(direction)){
|
|
|
|
// title="事件类型分布图-广州方向";
|
|
|
|
// }else {
|
|
|
|
// title="事件类型分布图-济南方向";
|
|
|
|
// }
|
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
|
//列宽自动分割
|
|
|
|
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW(); |
|
|
@ -541,9 +541,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public void accidentCongestedTimeExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
Map<String, String> map =accidentCongestedTime(dcSdhsEventQuery); |
|
|
|
String title="事故拥堵时长分布图"; |
|
|
|
String title="事故拥堵时长分布"; |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
|
//列宽自动分割
|
|
|
|
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW(); |
|
|
@ -596,9 +596,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
@Override |
|
|
|
public void accidentCongestedLocationExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
|
Map<String, Integer> map =accidentCongestedLocation(dcSdhsEventQuery); |
|
|
|
String title="事故拥堵地点分布图"; |
|
|
|
String title="事故拥堵地点分布"; |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
|
PoiUtil.createHeading2(doc, title); |
|
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
|
//列宽自动分割
|
|
|
|
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW(); |
|
|
|