From 970e7da6bce44d16c3a02348b91056048d1af7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 25 Feb 2026 18:27:38 +0900 Subject: [PATCH] dbmsv4 init...5 --- app/Services/Equipment/ServerService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Equipment/ServerService.php b/app/Services/Equipment/ServerService.php index 123c1b0..9125073 100644 --- a/app/Services/Equipment/ServerService.php +++ b/app/Services/Equipment/ServerService.php @@ -145,8 +145,7 @@ class ServerService extends EquipmentService if (!$entity instanceof ServerEntity) { throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생:Return Type은 ServerEntity만 가능"); } - echo var_dump($oldEntity); - dd($entity); + if ($oldEntity->getIP() !== $entity->getIP()) { if (!$oldEntity->getIP()) { //null이거나 공백인경우 service('part_ipservice')->detachFromServer($oldEntity); @@ -158,6 +157,7 @@ class ServerService extends EquipmentService if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) { if (!$oldEntity->getSwitchInfoUid()) { //null이거나 공백인경우 + dd($oldEntity); service('part_switchservice')->detachFromServer($oldEntity); } if ($entity->getSwitchInfoUid() !== null) {