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