From ca8b5c90c148c483dedccbf42fa5266419fc7082 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6ARNG1Q\\dlsgk" Date: Fri, 7 Feb 2025 14:09:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=A0=84=EC=8B=9C=EB=AE=AC=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EA=B0=80=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pwrGnrSimulation/PwrGnrSimService.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java b/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java index cf3773c0..6993f882 100644 --- a/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java +++ b/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java @@ -107,9 +107,21 @@ public class PwrGnrSimService { PwrGnrSimPlanResponse planInfo = pwrGnrSimMapper.selectPlanInfo(pwrGnrSimRequest); // 지역이 없으면 계산 불가능 - if (planInfo == null || planInfo.getAreaId() == 0) { - log.error("지역값이 없음."); + if (planInfo == null) { + log.error("물건정보 없음."); return exceptionRes; + } else { + exceptionRes.setObjectNo(planInfo.getObjectNo()); + exceptionRes.setPlanNo(planInfo.getPlanNo()); + exceptionRes.setDrawingEstimateCreateDate(planInfo.getDrawingEstimateCreateDate()); + exceptionRes.setPrefName(planInfo.getPrefName()); + exceptionRes.setAreaName(planInfo.getAreaName()); + exceptionRes.setSnowfall(planInfo.getSnowfall()); + exceptionRes.setStandardWindSpeedId(planInfo.getStandardWindSpeedId()); + if (planInfo.getAreaId() == 0) { + log.error("지역값이 없음."); + return exceptionRes; + } } // 2. 견적서 지붕재 목록 조회 @@ -131,6 +143,8 @@ public class PwrGnrSimService { if (roofGroupModuleList.isEmpty()) { log.error("모듈 아이템이 없음."); return exceptionRes; + } else { + exceptionRes.setRoofModuleList(roofGroupModuleList); } // 4. 계산을 위해 order by 변경 (총용량 DESC) -계산용 @@ -149,6 +163,8 @@ public class PwrGnrSimService { if (pcsGroupList.isEmpty()) { log.error("PCS 아이템이 없음."); return exceptionRes; + } else { + exceptionRes.setPcsList(pcsGroupList); } // 견적서 정보 기준으로 발전시뮬레이션 계산을 진행한다.