Pārlūkot izejas kodu

debug 驾驶舱算法

master
PoffyZhang pirms 1 gada
vecāks
revīzija
858dd912c5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/handle/CockpitStatsHandler.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/handle/CockpitStatsHandler.java Parādīt failu

@@ -188,7 +188,7 @@ public class CockpitStatsHandler {
return cocks.stream().map(c -> {
CockpitStatsVO.SafetyInput safetyInput = new CockpitStatsVO.SafetyInput();
safetyInput.setYear(c.getYear());
safetyInput.setRate(Objects.nonNull(c.getMonitorDeclaredAmount()) ?
safetyInput.setRate(Objects.nonNull(c.getMonitorDeclaredAmount()) && c.getMonitorDeclaredAmount().compareTo(BigDecimal.ZERO) > 0 ?
c.getMonitorSafetyInputAmount().divide(c.getMonitorDeclaredAmount(),2, RoundingMode.CEILING): BigDecimal.ZERO);
return safetyInput;
}).collect(Collectors.toList());


Notiek ielāde…
Atcelt
Saglabāt