Browse Source

fix:水库总览bug修复

release-sy-v1.0.0
“lyd” 1 month ago
parent
commit
1864c13794
  1. 2
      shuili-system/src/main/java/com/kms/yg/cz/service/MonitorService.java

2
shuili-system/src/main/java/com/kms/yg/cz/service/MonitorService.java

@ -316,7 +316,7 @@ public class MonitorService {
if (!CollectionUtils.isEmpty(attDamBaseJsonMoldeList)) { if (!CollectionUtils.isEmpty(attDamBaseJsonMoldeList)) {
attDamBaseJsonMoldeList.stream() attDamBaseJsonMoldeList.stream()
.map(SkAttDamBase::getDamTopElev) .map(SkAttDamBase::getDamTopElev)
.filter(e-> !StringUtils.isNotEmpty(e)) .filter(StringUtils::isNotEmpty)
.mapToDouble(Double::parseDouble) .mapToDouble(Double::parseDouble)
.max() .max()
.ifPresent(aDouble -> attResTaskViewDto.setCrestElevation(String.format("%.2f", aDouble))); .ifPresent(aDouble -> attResTaskViewDto.setCrestElevation(String.format("%.2f", aDouble)));

Loading…
Cancel
Save