From 9b7620637ede0c94e342ffdd72b9186605e5d910 Mon Sep 17 00:00:00 2001 From: ysCha Date: Wed, 1 Apr 2026 13:44:37 +0900 Subject: [PATCH] =?UTF-8?q?java=20=EB=B2=84=EC=A0=84=20=EB=A7=9E=EC=B6=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qcast/biz/estimate/EstimateService.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java index b1a22c3c..4621d767 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java @@ -1986,7 +1986,7 @@ public class EstimateService { if ("YJSS".equals(estimateType)) { pkgTotPrice = pkgAsp.multiply(totVol); - pkgTotPrice = pkgTotPrice.setScale(0, BigDecimal.ROUND_HALF_UP); + pkgTotPrice = pkgTotPrice.setScale(0, RoundingMode.HALF_UP); supplyPrice = supplyPrice.add(pkgTotPrice); } @@ -1996,14 +1996,14 @@ public class EstimateService { totPrice = totPrice.add(supplyPrice.add(vatPrice)); estimateResponse.setPkgTotPrice(String.valueOf(pkgTotPrice)); - estimateResponse.setTotAmount(String.valueOf(totAmount.setScale(0, BigDecimal.ROUND_HALF_UP))); + estimateResponse.setTotAmount(String.valueOf(totAmount.setScale(0, RoundingMode.HALF_UP))); estimateResponse.setTotVol(String.valueOf(totVol)); estimateResponse.setTotVolKw(String - .valueOf(totVol.multiply(new BigDecimal("0.001")).setScale(3, BigDecimal.ROUND_FLOOR))); + .valueOf(totVol.multiply(new BigDecimal("0.001")).setScale(3, RoundingMode.FLOOR))); estimateResponse - .setSupplyPrice(String.valueOf(supplyPrice.setScale(0, BigDecimal.ROUND_HALF_UP))); - estimateResponse.setVatPrice(String.valueOf(vatPrice.setScale(0, BigDecimal.ROUND_HALF_UP))); - estimateResponse.setTotPrice(String.valueOf(totPrice.setScale(0, BigDecimal.ROUND_HALF_UP))); + .setSupplyPrice(String.valueOf(supplyPrice.setScale(0, RoundingMode.HALF_UP))); + estimateResponse.setVatPrice(String.valueOf(vatPrice.setScale(0, RoundingMode.HALF_UP))); + estimateResponse.setTotPrice(String.valueOf(totPrice.setScale(0, RoundingMode.HALF_UP))); } private static final Set EXCEL_ITEM_NUMBER_FIELDS = new HashSet<>( @@ -2313,9 +2313,11 @@ public class EstimateService { .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); response = om.readValue(strResponse, EstimateApiResponse.class); + @SuppressWarnings("unchecked") Map result = (Map) response.getData(); if (result != null) { + @SuppressWarnings("unchecked") List> succList = (List>) result.get("successList"); for (Map succ : succList) { -- 2.47.2