Commit 5c4624a2 authored by duanruiming's avatar duanruiming

[update] 态势监测-问题路口小时流量

parent 74a10dbb
...@@ -379,6 +379,7 @@ public class TrendServiceImpl implements TrendService { ...@@ -379,6 +379,7 @@ public class TrendServiceImpl implements TrendService {
abnormalCrossDetailVO.setSturation(sturation); abnormalCrossDetailVO.setSturation(sturation);
String serviceLevel = CrossUtil.getServiceLevel(sturation); String serviceLevel = CrossUtil.getServiceLevel(sturation);
abnormalCrossDetailVO.setServiceLevel(serviceLevel); abnormalCrossDetailVO.setServiceLevel(serviceLevel);
abnormalCrossDetailVO.setHourFlow(crossDataRealtimePO.getFlow() * 12);
BigDecimal bigDecimal = BigDecimal.valueOf(crossDataRealtimePO.getCongestionIndex()).setScale(2, RoundingMode.HALF_UP); BigDecimal bigDecimal = BigDecimal.valueOf(crossDataRealtimePO.getCongestionIndex()).setScale(2, RoundingMode.HALF_UP);
abnormalCrossDetailVO.setCongestionIndex(bigDecimal); abnormalCrossDetailVO.setCongestionIndex(bigDecimal);
......
...@@ -38,6 +38,8 @@ public class AbnormalCrossDetailVO { ...@@ -38,6 +38,8 @@ public class AbnormalCrossDetailVO {
private Double sturation; private Double sturation;
@ApiModelProperty(value = "路口服务水平") @ApiModelProperty(value = "路口服务水平")
private String serviceLevel; private String serviceLevel;
@ApiModelProperty(value = "小时流量")
private Integer hourFlow;
@NoArgsConstructor @NoArgsConstructor
@Data @Data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment