From 70c2ac8376d7c6fb71125124236b9c46f5d58443 Mon Sep 17 00:00:00 2001 From: eastargh Date: Thu, 16 Jul 2026 14:52:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=9C=EB=B2=84=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=EC=8B=9C=20=EC=A4=91=EB=B3=B5=EC=B2=B4=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eai/rms/onl/manage/comm/server/ServerManService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/comm/server/ServerManService.java b/src/main/java/com/eactive/eai/rms/onl/manage/comm/server/ServerManService.java index 31c1ee2..a06a8f4 100644 --- a/src/main/java/com/eactive/eai/rms/onl/manage/comm/server/ServerManService.java +++ b/src/main/java/com/eactive/eai/rms/onl/manage/comm/server/ServerManService.java @@ -17,6 +17,7 @@ import com.eactive.eai.data.entity.onl.server.EAIServer; import com.eactive.eai.rms.common.base.OnlBaseService; import com.eactive.eai.rms.data.entity.onl.adapter.AdapterGroupService; import com.eactive.eai.rms.data.entity.onl.server.EAIServerService; +import com.eactive.eai.rms.onl.common.exception.BizException; @Service @Transactional @@ -78,6 +79,11 @@ public class ServerManService extends OnlBaseService { } public void insert(EAIServerUI eaiServerUI) { + String eaiSevrInstncName = eaiServerUI.getEaiSevrInstncName(); + if (eaiServerService.existsById(eaiSevrInstncName)) { + throw new BizException("서버 인스턴스명[" + eaiSevrInstncName + "]은 이미 등록되어 있습니다."); + } + EAIServer eaiServer = eaiServerUIMapper.toEntity(eaiServerUI); eaiServerService.save(eaiServer); }