河北超高压算法调整
This commit is contained in:
@@ -126,6 +126,8 @@ public class REvaluationDataServiceImpl extends ServiceImpl<RUploadEvaluationDat
|
|||||||
}
|
}
|
||||||
if (Objects.equals(item.getVoltageLevel(),"0")){
|
if (Objects.equals(item.getVoltageLevel(),"0")){
|
||||||
item.setVoltageLevel(null);
|
item.setVoltageLevel(null);
|
||||||
|
} else {
|
||||||
|
item.setVoltageLevel(getVoltage(item.getVoltageLevel()));
|
||||||
}
|
}
|
||||||
if (Objects.equals(item.getCityId(),"")){
|
if (Objects.equals(item.getCityId(),"")){
|
||||||
item.setCityId(null);
|
item.setCityId(null);
|
||||||
@@ -136,7 +138,6 @@ public class REvaluationDataServiceImpl extends ServiceImpl<RUploadEvaluationDat
|
|||||||
BigDecimal four = BigDecimal.valueOf(item.getMonitorBusRate());
|
BigDecimal four = BigDecimal.valueOf(item.getMonitorBusRate());
|
||||||
double value = four.setScale(4,BigDecimal.ROUND_HALF_UP).doubleValue();
|
double value = four.setScale(4,BigDecimal.ROUND_HALF_UP).doubleValue();
|
||||||
item.setMonitorBusRate(value);
|
item.setMonitorBusRate(value);
|
||||||
item.setVoltageLevel(getVoltage(item.getVoltageLevel()));
|
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
//组装数据
|
//组装数据
|
||||||
SendParam sp = new SendParam();
|
SendParam sp = new SendParam();
|
||||||
|
|||||||
Reference in New Issue
Block a user