dbmsv4 init...5
This commit is contained in:
parent
8b8ffe4d33
commit
7c650ef4ba
@ -149,14 +149,18 @@ class ServerService extends EquipmentService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($oldEntity->getIP() !== $entity->getIP()) {
|
if ($oldEntity->getIP() !== $entity->getIP()) {
|
||||||
service('part_ipservice')->detachFromServer($oldEntity);
|
if (!$oldEntity->getIP()) { //null이거나 공백인경우
|
||||||
|
service('part_ipservice')->detachFromServer($oldEntity);
|
||||||
|
}
|
||||||
if ($entity->getIP() !== null) {
|
if ($entity->getIP() !== null) {
|
||||||
service('part_ipservice')->attachToServer($entity);
|
service('part_ipservice')->attachToServer($entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) {
|
if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) {
|
||||||
service('part_switchservice')->detachFromServer($oldEntity);
|
if (!$oldEntity->getSwitchInfoUid()) { //null이거나 공백인경우
|
||||||
|
service('part_switchservice')->detachFromServer($oldEntity);
|
||||||
|
}
|
||||||
if ($entity->getSwitchInfoUid() !== null) {
|
if ($entity->getSwitchInfoUid() !== null) {
|
||||||
service('part_switchservice')->attachToServer($entity);
|
service('part_switchservice')->attachToServer($entity);
|
||||||
}
|
}
|
||||||
@ -169,7 +173,7 @@ class ServerService extends EquipmentService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ✅ 서비스 유지중이면 정상 동기화 (해지 시는 deatchFromService에서 따로 처리)
|
// ✅ 서비스 유지중이면 정상 동기화 (해지 시는 detachFromService에서 따로 처리)
|
||||||
if ($entity->getServiceInfoUid() !== null) {
|
if ($entity->getServiceInfoUid() !== null) {
|
||||||
$serviceEntity = service('customer_serviceservice')->getEntity($entity->getServiceInfoUid());
|
$serviceEntity = service('customer_serviceservice')->getEntity($entity->getServiceInfoUid());
|
||||||
if (!$serviceEntity instanceof ServiceEntity) {
|
if (!$serviceEntity instanceof ServiceEntity) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user