Commit a66e07a6 authored by duwei's avatar duwei

信号评价接口/opt/runningEvaluate/crossEvaluate 优化

parent ed0a98f2
...@@ -157,6 +157,9 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService { ...@@ -157,6 +157,9 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService {
.sum(); .sum();
double saturation = sumA / sumB; double saturation = sumA / sumB;
if (Double.isNaN(saturation)){
saturation = 0.0;
}
String serviceLevel = CrossUtil.getServiceLevel(saturation); String serviceLevel = CrossUtil.getServiceLevel(saturation);
vo.setServiceLevel(serviceLevel); vo.setServiceLevel(serviceLevel);
......
...@@ -24,7 +24,7 @@ public class LightsStatusVO extends BaseCrossInfo { ...@@ -24,7 +24,7 @@ public class LightsStatusVO extends BaseCrossInfo {
private String phasePlanId; private String phasePlanId;
@ApiModelProperty(value = "方案开始时间", notes = "目前没有用到") @ApiModelProperty(value = "方案开始时间", notes = "目前没有用到")
private String schemeStartTime; private String schemeStartTime;
@ApiModelProperty(value = "相位周期剩余时长") @ApiModelProperty(value = "周期剩余时长")
private Integer cycleCountDown; private Integer cycleCountDown;
@ApiModelProperty(value = "相位周期剩余时长") @ApiModelProperty(value = "相位周期剩余时长")
private Integer cyclePhaseCountDown; private Integer cyclePhaseCountDown;
......
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