dbmsv4 init...5

This commit is contained in:
최준흠 2026-02-25 18:29:47 +09:00
parent 970e7da6bc
commit b89e85099e

View File

@ -147,7 +147,7 @@ class ServerService extends EquipmentService
}
if ($oldEntity->getIP() !== $entity->getIP()) {
if (!$oldEntity->getIP()) { //null이거나 공백인경우
if ($oldEntity->getIP() !== null) { //null이거나 공백인경우
service('part_ipservice')->detachFromServer($oldEntity);
}
if ($entity->getIP() !== null) {
@ -156,8 +156,7 @@ class ServerService extends EquipmentService
}
if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) {
if (!$oldEntity->getSwitchInfoUid()) { //null이거나 공백인경우
dd($oldEntity);
if (is_int($oldEntity->getSwitchInfoUid())) { //null이거나 공백인경우
service('part_switchservice')->detachFromServer($oldEntity);
}
if ($entity->getSwitchInfoUid() !== null) {