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; - } } }