数据参数异常修改
This commit is contained in:
@@ -228,7 +228,11 @@ public class RStatHarmonicMServiceImpl extends ServiceImpl<RStatHarmonicMMapper,
|
|||||||
// Float averageOverDay = Float.parseFloat(
|
// Float averageOverDay = Float.parseFloat(
|
||||||
// df.format(value.getOverDay() / (value.getOverLimitMeasurementAccrued() * 1.0)));
|
// df.format(value.getOverDay() / (value.getOverLimitMeasurementAccrued() * 1.0)));
|
||||||
Float averageOverDay = (float)value.getOverDay()/value.getOverLimitMeasurementAccrued();
|
Float averageOverDay = (float)value.getOverDay()/value.getOverLimitMeasurementAccrued();
|
||||||
|
if(Double.isNaN(averageOverDay)){
|
||||||
|
rIconVO.setAverageOverDay(0.0F);
|
||||||
|
}else{
|
||||||
rIconVO.setAverageOverDay(Float.parseFloat(String.format("%.2f", averageOverDay)));
|
rIconVO.setAverageOverDay(Float.parseFloat(String.format("%.2f", averageOverDay)));
|
||||||
|
}
|
||||||
arrayVOList.add(rIconVO);
|
arrayVOList.add(rIconVO);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user