From bfc645820b7c3e75bc5ddef0316bd3f31ba01e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Thu, 3 Apr 2025 11:50:15 +0900 Subject: [PATCH] dbms_primeidc_init...1 --- extdbms/lib/Entities/ClientEntity.php | 8 ++++---- extdbms/lib/Services/ServiceService.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extdbms/lib/Entities/ClientEntity.php b/extdbms/lib/Entities/ClientEntity.php index e80741f..a71d486 100644 --- a/extdbms/lib/Entities/ClientEntity.php +++ b/extdbms/lib/Entities/ClientEntity.php @@ -13,12 +13,12 @@ class ClientEntity extends Entity { parent::__construct($datas); } // - public function getPhone(string $field = ""): string + public function getPhone(string $field = "", string $delimeter = ","): string { - return $field ? $this->$field : "{$this->Client_Phone1},{$this->Client_Phone2}"; + return $field ? $this->$field : "{$this->Client_Phone1} {$delimeter} {$this->Client_Phone2}"; } - public function getEmail(string $field = ""): string + public function getEmail(string $field = "", string $delimeter = ","): string { - return $field ? $this->$field : "{$this->Client_EMail1},{$this->Client_EMail2}"; + return $field ? $this->$field : "{$this->Client_EMail1} {$delimeter} {$this->Client_EMail2}"; } } //Class diff --git a/extdbms/lib/Services/ServiceService.php b/extdbms/lib/Services/ServiceService.php index 37c678a..f5c3379 100644 --- a/extdbms/lib/Services/ServiceService.php +++ b/extdbms/lib/Services/ServiceService.php @@ -35,7 +35,7 @@ class ServiceService extends CommonService public function getEntitysByIP(string $value): mixed { $this->getModel()->where("service_ip", $value); - return $this->getEntity(); + return $this->getEntitys(); } public function getEntitysByCodes(array $values): array {