微调
This commit is contained in:
@@ -647,14 +647,14 @@ public class IDataLimitRateAsyncImpl implements IDataLimitRateAsync {
|
|||||||
if (!CollectionUtils.isEmpty(dataVPOUnbalanceList)) {
|
if (!CollectionUtils.isEmpty(dataVPOUnbalanceList)) {
|
||||||
for (DataVDto item : dataVPOUnbalanceList) {
|
for (DataVDto item : dataVPOUnbalanceList) {
|
||||||
if (ObjectUtil.isNotNull(item.getVUnbalance())) {
|
if (ObjectUtil.isNotNull(item.getVUnbalance())) {
|
||||||
if (InfluxDBTableConstant.AVG.equalsIgnoreCase(item.getValueType()) || InfluxDBTableConstant.CP95.equalsIgnoreCase(item.getValueType()) ) {
|
if (InfluxDBTableConstant.MAX.equalsIgnoreCase(item.getValueType())) {
|
||||||
if (item.getVUnbalance() > 2.0) {
|
|
||||||
addAbnormalData(sx, item.getPhasicType(), "CP95", item.getMinTime(), item.getVUnbalance(), 2.0f);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (item.getVUnbalance() > 4.0) {
|
if (item.getVUnbalance() > 4.0) {
|
||||||
addAbnormalData(sx, item.getPhasicType(), item.getValueType(), item.getMinTime(), item.getVUnbalance(), 4.0f);
|
addAbnormalData(sx, item.getPhasicType(), item.getValueType(), item.getMinTime(), item.getVUnbalance(), 4.0f);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (item.getVUnbalance() > 2.0) {
|
||||||
|
addAbnormalData(sx, item.getPhasicType(), "CP95", item.getMinTime(), item.getVUnbalance(), 2.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user