From 65fe2f0d4eb31ba354465814dba6c2af98551d7a Mon Sep 17 00:00:00 2001 From: ysCha Date: Fri, 9 Jan 2026 15:09:57 +0900 Subject: [PATCH] =?UTF-8?q?[1393]Simulation=20=EB=B0=9C=EC=A0=84=EB=9F=89?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pwrGnrSimulation/PwrGnrSimService.java | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 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 bdbd3ef3..bfa220f5 100644 --- a/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java +++ b/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java @@ -262,21 +262,13 @@ public class PwrGnrSimService { for (PwrGnrSimRoofResponse m : moduleGroupList) { if (data.getRoofSurfaceId().equals(m.getRoofSurfaceId())) { dSpecification += m.getTotSpecification(); - if (j == 0) { - if(pwrGnrSimReq.getModule1().equals(m.getItemId())){ - dModuleInput1[i] = Integer.parseInt(m.getAmount()); - }else if(pwrGnrSimReq.getModule2().equals(m.getItemId())){ - dModuleInput2[i] = Integer.parseInt(m.getAmount()); - }else if(pwrGnrSimReq.getModule3().equals(m.getItemId())){ - dModuleInput3[i] = Integer.parseInt(m.getAmount()); - } - - } else if (j == 1) { - dModuleInput2[i] = Integer.parseInt(m.getAmount()); - } else { - dModuleInput3[i] = Integer.parseInt(m.getAmount()); - } - j++; + if (m.getItemId().equals(pwrGnrSimReq.getModule1())) { + dModuleInput1[i] = Integer.parseInt(m.getAmount()); + } else if (m.getItemId().equals(pwrGnrSimReq.getModule2())) { + dModuleInput2[i] = Integer.parseInt(m.getAmount()); + } else if (m.getItemId().equals(pwrGnrSimReq.getModule3())) { + dModuleInput3[i] = Integer.parseInt(m.getAmount()); + } } } i++;