From 05d2182059e16991e0d76f7f4fc49b54acf1b117 Mon Sep 17 00:00:00 2001 From: JoJH Date: Wed, 30 Oct 2024 17:32:31 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=ED=83=80=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/rent/web/Rent02Controller.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/cokr/xit/fims/rent/web/Rent02Controller.java b/src/main/java/cokr/xit/fims/rent/web/Rent02Controller.java index 48212ae7..b9d33bac 100644 --- a/src/main/java/cokr/xit/fims/rent/web/Rent02Controller.java +++ b/src/main/java/cokr/xit/fims/rent/web/Rent02Controller.java @@ -652,15 +652,13 @@ public class Rent02Controller extends ApplicationController { } else { // Ids 만큼 반복 등록 for (String lsctMpngId : lsctAprv.getLsctMpngIds()) { - LsctAprv removeAprv = new LsctAprv(); - removeAprv.setLsctMpngId(lsctMpngId); - removeAprv.setChgDmndIp(remoteAddr); + LsctAprv deltAprv = new LsctAprv(); + deltAprv.setLsctMpngId(lsctMpngId); + deltAprv.setChgDmndIp(remoteAddr); - rtnMsg = lsctMpngService.removeLsctAprv(removeAprv); // 삭제 - if (!rtnMsg.contains("[S]")) { // 오류가 발생하였으면 종료.. - saved = false; + rtnMsg = lsctMpngService.removeLsctAprv(deltAprv); // 삭제 + if (!rtnMsg.contains("[S]")) // 오류가 발생하였으면 종료.. break; - } } }