dbmsv3 init...1

This commit is contained in:
choi.jh 2025-11-10 14:33:43 +09:00
parent 57207ce806
commit 9caf060dd4
4 changed files with 24 additions and 21 deletions

View File

@ -138,6 +138,7 @@ class PaymentController extends CustomerController
}
$entities[] = $this->getService()->setPaid($entity);
}
//Transaction Commit
$db->transCommit();
sprintf(
"<script>alert('총 %s개중 %s개 결제처리을 완료하였습니다.'); history.back();</script>",

File diff suppressed because one or more lines are too long

View File

@ -50,6 +50,7 @@ class AccountService extends CustomerService
if (!$entity instanceof ClientEntity) {
throw new \Exception("{$formDatas['clientinfo_uid']}에 대한 고객정보를 찾을수 없습니다.");
}
// dd($entity);
return $this->getClientService()->setAccount($formDatas['status'], $entity, intval($formDatas['amount']));
}
//결제관련 예치금 차감 처리용
@ -61,9 +62,10 @@ class AccountService extends CustomerService
'title' => "[결제차감] {$paymentEntity->getTitle()}",
'issue_at' => date('Y-m-d H:i:s'),
'amount' => $paymentEntity->getAmount(),
'status' => STATUS['PAID'],
'status' => STATUS['WITHDRAWAL'],
];
$this->setBalance($formDatas);
$clientEntity = $this->setBalance($formDatas);
// dd($clientEntity);
return $this->getModel()->create($formDatas);
}
//기본 기능부분

View File

@ -259,12 +259,12 @@ class PaymentService extends CommonService
//결제 완료 처리 후 추가정보 처리
$entity = parent::modify($entity, ['pay' => PAYMENT['PAY']['ACCOUNT'], 'status' => STATUS['PAID']]);
//Log처리
$this->getMylogService()->create([
$logEntity = $this->getMylogService()->create([
'title' => "[{$entity->getTitle()}] 월과금 결제처리",
'status' => $entity->getStatus()
]);
//예치금처리
$this->getAccountService()->setPaid($entity);
$accountEntity = $this->getAccountService()->setPaid($entity);
return $entity;
}
//기본 기능부분