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 7bbe4535..1bfa639e 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java @@ -680,10 +680,10 @@ public class EstimateService { itemRequest.setPlanNo(estimateRequest.getPlanNo()); // 선택한 PCS 아이템이 다른 경우 - for (ItemRequest qcastCPI : itemList) { + for (ItemRequest itemObj : itemList) { - if(qcastCPI.getQcastCustPrdId() != null && qcastCPI.getQcastCustPrdId().equals(itemRequest.getPcItemId())) { - itemRequest.setQcastCustPrdId(qcastCPI.getQcastCustPrdId()); + if(itemObj.getQcastCustPrdId() != null && itemObj.getQcastCustPrdId().equals(itemRequest.getPcItemId())) { + itemRequest.setQcastCustPrdId(itemObj.getItemId()); } } estimateMapper.insertEstimateRoofItem(itemRequest);