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