河北超高压算法调整

This commit is contained in:
2024-01-12 15:56:40 +08:00
parent fa3908c77a
commit 3496f93c86

View File

@@ -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();