dbms_init...1

This commit is contained in:
choi.jh 2025-06-09 17:47:51 +09:00
parent e1e5faeeae
commit 7bd8830b28
2 changed files with 13 additions and 1 deletions

View File

@ -48,6 +48,11 @@ class ServiceController extends CustomerController
protected function getResultSuccess(string $message = MESSAGES["SUCCESS"]): RedirectResponse|string
{
switch ($this->getAction()) {
case 'create':
case 'modify':
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->getMyAuth(), $message);
$result = $this->view($this->entity->getPK());
break;
case 'index':
$this->control = $this->getControlDatas();
$this->getHelper()->setViewDatas($this->getViewDatas());
@ -72,7 +77,7 @@ class ServiceController extends CustomerController
foreach ($this->item_types as $field => $label) {
$entity->setItemEntities(
$field,
$this->getServiceItemService()->getEntities(['item_type' => $field])
$this->getServiceItemService()->getEntities(['serviceinfo_uid'=>$entity->getPK(),'item_type' => $field])
);
}
$entities[] = $entity;

View File

@ -567,6 +567,13 @@ abstract class CommonController extends BaseController
if (!$entity) {
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
}
//filter_fields에 해당하는 값이 있을 경우 정의
foreach ($this->getFilterFields() as $field) {
$value = $this->request->getVar($field);
if ($value) {
$this->$field = $value;
}
}
$this->entity = $this->view_process($entity);
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
return $this->getResultSuccess();