dbms_init...1
This commit is contained in:
parent
050a31479d
commit
5606f70905
@ -78,11 +78,10 @@ abstract class CommonService
|
|||||||
}
|
}
|
||||||
$entities = [];
|
$entities = [];
|
||||||
foreach ($this->getModel()->select(implode(',', $columns))->findAll() as $entity) {
|
foreach ($this->getModel()->select(implode(',', $columns))->findAll() as $entity) {
|
||||||
$entitys[$entity->getPK()] = $this->setRelatedEntity($entity);
|
$entities[$entity->getPK()] = $this->setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
if (env('app.debug.index')) {
|
if (env('app.debug.index')) {
|
||||||
echo $this->getModel()->getLastQuery() . "<BR>";
|
echo $this->getModel()->getLastQuery() . "<BR>";
|
||||||
// exit;
|
|
||||||
}
|
}
|
||||||
return $entities;
|
return $entities;
|
||||||
} //
|
} //
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class AccountService extends CustomerService
|
|||||||
{
|
{
|
||||||
//고객정보정의
|
//고객정보정의
|
||||||
$entity->setClient($this->getClient($entity->getClientUID()));
|
$entity->setClient($this->getClient($entity->getClientUID()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class CouponService extends CustomerService
|
|||||||
{
|
{
|
||||||
//고객정보정의
|
//고객정보정의
|
||||||
$entity->setClient($this->getClient($entity->getClientUID()));
|
$entity->setClient($this->getClient($entity->getClientUID()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class PointService extends CustomerService
|
|||||||
{
|
{
|
||||||
//고객정보정의
|
//고객정보정의
|
||||||
$entity->setClient($this->getClient($entity->getClientUID()));
|
$entity->setClient($this->getClient($entity->getClientUID()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|
||||||
|
|||||||
@ -55,8 +55,8 @@ class ServiceHistoryService extends CustomerService
|
|||||||
protected function setRelatedEntity(mixed $entity): ServiceHistoryEntity
|
protected function setRelatedEntity(mixed $entity): ServiceHistoryEntity
|
||||||
{
|
{
|
||||||
//서비스정보정의
|
//서비스정보정의
|
||||||
$entity->setService($this->getClient($entity->getClientUID()));
|
$entity->setService($this->getServiceService()->getEntity($entity->getServiceUid()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,8 +68,8 @@ class ServiceItemService extends CustomerService
|
|||||||
protected function setRelatedEntity(mixed $entity): ServiceItemEntity
|
protected function setRelatedEntity(mixed $entity): ServiceItemEntity
|
||||||
{
|
{
|
||||||
//서비스정보정의
|
//서비스정보정의
|
||||||
$entity->setService($this->getClient($entity->getClientUID()));
|
$entity->setService($this->getServiceService()->getEntity($entity->getServiceUid()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
public function create(array $formDatas, mixed $entity = null): ServiceItemEntity
|
public function create(array $formDatas, mixed $entity = null): ServiceItemEntity
|
||||||
|
|||||||
@ -64,10 +64,10 @@ class ServicePaymentService extends CustomerService
|
|||||||
protected function setRelatedEntity(mixed $entity): ServicePaymentEntity
|
protected function setRelatedEntity(mixed $entity): ServicePaymentEntity
|
||||||
{
|
{
|
||||||
//서비스정보정의
|
//서비스정보정의
|
||||||
$entity->setService($this->getClient($entity->getClientUID()));
|
$entity->setService($this->getServiceService()->getEntity($entity->getServiceUid()));
|
||||||
//관리자정보정의
|
//관리자정보정의
|
||||||
$entity->setOwner($this->getClient($entity->getOwnerUID()));
|
$entity->setOwner($this->getClient($entity->getOwnerUID()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class ServiceService extends CustomerService
|
|||||||
$entity->setClient($this->getClient($entity->getClientUID()));
|
$entity->setClient($this->getClient($entity->getClientUID()));
|
||||||
//관리자정보정의
|
//관리자정보정의
|
||||||
$entity->setOwner($this->getClient($entity->getOwnerUID()));
|
$entity->setOwner($this->getClient($entity->getOwnerUID()));
|
||||||
return $entity;
|
return parent::setRelatedEntity($entity);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user