|
@ -426,6 +426,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
// }else {
|
|
|
// }else {
|
|
|
// title="事故路段分布图-济南方向";
|
|
|
// title="事故路段分布图-济南方向";
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()){ |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
XWPFTable table = doc.createTable(map.size()+1,2); |
|
|
XWPFTable table = doc.createTable(map.size()+1,2); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -470,6 +471,10 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
}catch (Exception e){ |
|
|
}catch (Exception e){ |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
//事故类型分析导出
|
|
|
//事故类型分析导出
|
|
|
@Override |
|
|
@Override |
|
@ -482,6 +487,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
// }else {
|
|
|
// }else {
|
|
|
// title="事件类型分布图-济南方向";
|
|
|
// title="事件类型分布图-济南方向";
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -527,12 +533,16 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//事故拥堵时间导出
|
|
|
//事故拥堵时间导出
|
|
|
@Override |
|
|
@Override |
|
|
public void accidentCongestedTimeExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
public void accidentCongestedTimeExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
Map<String, String> map =accidentCongestedTime(dcSdhsEventQuery); |
|
|
Map<String, String> map =accidentCongestedTime(dcSdhsEventQuery); |
|
|
String title="事故拥堵时长分布图"; |
|
|
String title="事故拥堵时长分布图"; |
|
|
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -578,12 +588,16 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
//事故拥堵地点导出
|
|
|
//事故拥堵地点导出
|
|
|
@Override |
|
|
@Override |
|
|
public void accidentCongestedLocationExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
public void accidentCongestedLocationExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { |
|
|
Map<String, Integer> map =accidentCongestedLocation(dcSdhsEventQuery); |
|
|
Map<String, Integer> map =accidentCongestedLocation(dcSdhsEventQuery); |
|
|
String title="事故拥堵地点分布图"; |
|
|
String title="事故拥堵地点分布图"; |
|
|
|
|
|
if (map != null && map.size() != UniversalEnum.ZERO.getNumber()) { |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
PoiUtil.createHeading2(doc, title); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
XWPFTable table = doc.createTable(map.size() + 1, 2); |
|
|
//列宽自动分割
|
|
|
//列宽自动分割
|
|
@ -629,6 +643,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
e.printStackTrace(); |
|
|
e.printStackTrace(); |
|
|
} |
|
|
} |
|
|
|
|
|
}else { |
|
|
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*public AjaxResult importData(MultipartFile file) throws IOException { |
|
|
/*public AjaxResult importData(MultipartFile file) throws IOException { |
|
|