dbmsv4 init...3

This commit is contained in:
최준흠 2025-12-22 17:47:37 +09:00
parent eb0b99c205
commit 99bdd4013d
4 changed files with 4 additions and 7 deletions

View File

@ -32,7 +32,7 @@ class ClientEntity extends CustomerEntity
//기본기능 //기본기능
public function getCustomTitle(mixed $title = null): string public function getCustomTitle(mixed $title = null): string
{ {
return sprintf("[%s]%s", $this->getSite(), $title ? $title : $this->getTitle()); return sprintf("%s/%s", $this->getSite(), $title ? $title : $this->getTitle());
} }
public function getName(): string public function getName(): string
{ {

View File

@ -282,7 +282,7 @@ abstract class CommonForm
break; break;
case 'clientinfo_uid': case 'clientinfo_uid':
foreach ($this->getFormOption_process(service('customer_clientservice'), $action, $field, $formDatas) as $entity) { foreach ($this->getFormOption_process(service('customer_clientservice'), $action, $field, $formDatas) as $entity) {
$tempOptions[$entity->getPK()] = $entity->getTitle(); $tempOptions[$entity->getPK()] = $entity->getCustomTitle();
} }
$options['options'] = $tempOptions; $options['options'] = $tempOptions;
break; break;

View File

@ -98,6 +98,8 @@ abstract class CommonService
if ($where) { if ($where) {
$this->model->where($where); $this->model->where($where);
} }
//기본 Order By 이용하기위해
$this->setOrderBy();
/** @var array<\App\Entities\CommonEntity> $results */ /** @var array<\App\Entities\CommonEntity> $results */
$results = $this->model->select(implode(',', $columns))->findAll(); $results = $this->model->select(implode(',', $columns))->findAll();
log_message('debug', $this->model->getLastQuery()); log_message('debug', $this->model->getLastQuery());

View File

@ -67,11 +67,6 @@ class ClientService extends CustomerService
//List 검색용 //List 검색용
//FormFilter 조건절 처리 //FormFilter 조건절 처리
//검색어조건절처리 //검색어조건절처리
public function setSearchWord(string $word): void
{
$this->model->orLike($this->model->getTable() . '.alias', $word, 'both');
parent::setSearchWord($word);
}
//OrderBy 처리 //OrderBy 처리
public function setOrderBy(mixed $field = null, mixed $value = null): void public function setOrderBy(mixed $field = null, mixed $value = null): void
{ {