dbmsv4 init...5
This commit is contained in:
parent
970e7da6bc
commit
b89e85099e
@ -147,7 +147,7 @@ class ServerService extends EquipmentService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($oldEntity->getIP() !== $entity->getIP()) {
|
if ($oldEntity->getIP() !== $entity->getIP()) {
|
||||||
if (!$oldEntity->getIP()) { //null이거나 공백인경우
|
if ($oldEntity->getIP() !== null) { //null이거나 공백인경우
|
||||||
service('part_ipservice')->detachFromServer($oldEntity);
|
service('part_ipservice')->detachFromServer($oldEntity);
|
||||||
}
|
}
|
||||||
if ($entity->getIP() !== null) {
|
if ($entity->getIP() !== null) {
|
||||||
@ -156,8 +156,7 @@ class ServerService extends EquipmentService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) {
|
if ($oldEntity->getSwitchInfoUid() !== $entity->getSwitchInfoUid()) {
|
||||||
if (!$oldEntity->getSwitchInfoUid()) { //null이거나 공백인경우
|
if (is_int($oldEntity->getSwitchInfoUid())) { //null이거나 공백인경우
|
||||||
dd($oldEntity);
|
|
||||||
service('part_switchservice')->detachFromServer($oldEntity);
|
service('part_switchservice')->detachFromServer($oldEntity);
|
||||||
}
|
}
|
||||||
if ($entity->getSwitchInfoUid() !== null) {
|
if ($entity->getSwitchInfoUid() !== null) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user