Commit d07dc610 authored by duanruiming's avatar duanruiming

[update] 态势监测-问题路口列表-添加相位空放统计

parent 1065f08c
......@@ -1594,6 +1594,7 @@ public class TrendServiceImpl implements TrendService {
Integer unbalance = abnormalCrossStats.getUnbalance();
Integer congestion = abnormalCrossStats.getCongestion();
Integer spillover = abnormalCrossStats.getSpillover();
Integer phaseEmpty = abnormalCrossStats.getPhaseEmpty();
for (AbnormalCrossListVO abnormalCrossListVO : abnormalCrossListVOList) {
Integer realtimeStatus = abnormalCrossListVO.getRealtimeStatus();
if (realtimeStatus == 0) {
......@@ -1604,12 +1605,15 @@ public class TrendServiceImpl implements TrendService {
congestion += 1;
} else if (realtimeStatus == 3) {
spillover += 1;
} else if (realtimeStatus == 5) {
phaseEmpty += 1;
}
}
abnormalCrossStats.setNormal(normal);
abnormalCrossStats.setUnbalance(unbalance);
abnormalCrossStats.setCongestion(congestion);
abnormalCrossStats.setSpillover(spillover);
abnormalCrossStats.setPhaseEmpty(phaseEmpty);
abnormalCrossVO.setAbnormalCrossStats(abnormalCrossStats);
}
......@@ -1700,8 +1704,6 @@ public class TrendServiceImpl implements TrendService {
}
}
}
}
return hotspotCrossVOS;
}
......
......@@ -21,4 +21,6 @@ public class AbnormalCrossStats {
private Integer congestion = 0;
@ApiModelProperty(value = "溢出数量")
private Integer spillover = 0;
@ApiModelProperty(value = "相位空放数量")
private Integer phaseEmpty = 0;
}
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