From dc22dee6aa6b3916474cafa79ce95fd9a4669eef Mon Sep 17 00:00:00 2001 From: jjh Date: Thu, 1 Aug 2024 10:44:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EB=8C=80=EC=97=85=EC=B2=B4=20?= =?UTF-8?q?=EC=A4=91=EB=B3=B5=EB=93=B1=EB=A1=9D=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/rent/service/bean/RentEntBean.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/cokr/xit/fims/rent/service/bean/RentEntBean.java b/src/main/java/cokr/xit/fims/rent/service/bean/RentEntBean.java index 0560f18c..0e2fed61 100644 --- a/src/main/java/cokr/xit/fims/rent/service/bean/RentEntBean.java +++ b/src/main/java/cokr/xit/fims/rent/service/bean/RentEntBean.java @@ -178,6 +178,21 @@ public class RentEntBean extends AbstractBean { * */ public String createRentEnt(RentEnt rentEnt) { + // 변수 선언 + String rtnMsg = ""; // 처리 결과 메시지 + + RentQuery req = new RentQuery(); + req.setSchEntNo(rentEnt.getEntNo()); + req.setDelYn("N"); + + // 임대 기업(TB_RENT_ENT) 정보를 조회한다. + DataObject rentEntInfo = rentEntMapper.selectRentEntInfo(req); + + if (rentEntInfo != null) { + rtnMsg = "[F] 작업 중 오류가 발생하였습니다.
이미 등록된 임대기업 정보가 존재합니다."; + return rtnMsg; + } + // 임대기업(TB_RENT_ENT) 대장을 등록한다. int rtnNocs = rentEntMapper.insertRentEnt(rentEnt); if (rtnNocs != 1) {