|
|
@ -397,6 +397,9 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
if (!"交通拥堵".equals(eventType)){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
if (event.getStakeMark() == null||"无".equals(event.getStakeMark())) { |
|
|
|
continue;//格式不符合,跳过
|
|
|
|
} |
|
|
|
String kmStr = event.getStakeMark().substring(1); // 假设总是以"K"开头
|
|
|
|
if (org.apache.commons.lang3.StringUtils.isBlank(kmStr)) { |
|
|
|
continue; |
|
|
@ -915,7 +918,7 @@ public class DcSdhsEventServiceImpl implements IDcSdhsEventService { |
|
|
|
|
|
|
|
String description = String.format(template,thisTimeFormat,thisTimeTotal,lastTimeFormat,lastTimeTotal,ratio,maxTypeName,maxType,typeRatio); |
|
|
|
PoiUtil.addText(doc,description); |
|
|
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
addDescription(doc, UniversalEnum.NO_DATA_AVAILABLE.getValue()); |
|
|
|
} |
|
|
|