dbmsv4 init...3
This commit is contained in:
parent
eb0b99c205
commit
99bdd4013d
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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());
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user