Browse Source

高速云事件改版

develop
lau572 1 week ago
parent
commit
edbce34b10
  1. 22
      zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java
  2. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

22
zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java

@ -161,7 +161,8 @@ public class DcSdhsEventController extends BaseController {
if (exportKey != null && exportKey.size() > 0){ if (exportKey != null && exportKey.size() > 0){
//交通事件 //交通事件
if (exportKey.contains("1") || exportKey.contains("2") || exportKey.contains("3") if (exportKey.contains("1") || exportKey.contains("2") || exportKey.contains("3")
|| exportKey.contains("4") || exportKey.contains("5")){ || exportKey.contains("4") || exportKey.contains("5")
|| exportKey.contains("14") || exportKey.contains("15")){
PoiUtil.createHeading1(newDoc,"交通事件"); PoiUtil.createHeading1(newDoc,"交通事件");
for (String trafficIncidentType : exportKey) { for (String trafficIncidentType : exportKey) {
if ("1".equals(trafficIncidentType)){ if ("1".equals(trafficIncidentType)){
@ -179,6 +180,12 @@ public class DcSdhsEventController extends BaseController {
} else if ("5".equals(trafficIncidentType)){ } else if ("5".equals(trafficIncidentType)){
//交通管制情况统计 //交通管制情况统计
dcSdhsEventService.exportStationAnalysis(newDoc,dcSdhsEventQuery); dcSdhsEventService.exportStationAnalysis(newDoc,dcSdhsEventQuery);
} else if ("14".equals(trafficIncidentType)){
//拥堵地点统计
dcSdhsEventService.accidentCongestedLocationExport(newDoc,dcSdhsEventQuery);
} else if ("15".equals(trafficIncidentType)){
//路段平均拥堵时长
dcSdhsEventService.accidentCongestedTimeExport(newDoc,dcSdhsEventQuery);
} }
} }
@ -222,19 +229,6 @@ public class DcSdhsEventController extends BaseController {
} }
} }
if (exportKey.contains("14") || exportKey.contains("15")){
PoiUtil.createHeading1(newDoc,"拥堵情况");
for (String trafficIncidentType : exportKey) {
if ("14".equals(trafficIncidentType)){
//拥堵地点统计
dcSdhsEventService.accidentCongestedLocationExport(newDoc,dcSdhsEventQuery);
} else if ("15".equals(trafficIncidentType)){
//路段平均拥堵时长
dcSdhsEventService.accidentCongestedTimeExport(newDoc,dcSdhsEventQuery);
}
}
}
} }

2
zc-business/src/main/java/com/zc/business/service/impl/DcSdhsEventServiceImpl.java

@ -731,7 +731,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService {
@Override @Override
public void accidentCongestedTimeExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) { public void accidentCongestedTimeExport(XWPFDocument doc, DcSdhsEventQuery dcSdhsEventQuery) {
List<Map<String, Object>> maps = accidentCongestedTime(dcSdhsEventQuery); List<Map<String, Object>> maps = accidentCongestedTime(dcSdhsEventQuery);
String title="事故拥堵时长分布(单位:min)"; String title="拥堵事件处置统计";
PoiUtil.createHeading2(doc, title); PoiUtil.createHeading2(doc, title);
if (maps != null && maps.size() != UniversalEnum.ZERO.getNumber()){ if (maps != null && maps.size() != UniversalEnum.ZERO.getNumber()){

Loading…
Cancel
Save