dbmsv3 init...1
This commit is contained in:
parent
57207ce806
commit
9caf060dd4
@ -138,6 +138,7 @@ class PaymentController extends CustomerController
|
|||||||
}
|
}
|
||||||
$entities[] = $this->getService()->setPaid($entity);
|
$entities[] = $this->getService()->setPaid($entity);
|
||||||
}
|
}
|
||||||
|
//Transaction Commit
|
||||||
$db->transCommit();
|
$db->transCommit();
|
||||||
sprintf(
|
sprintf(
|
||||||
"<script>alert('총 %s개중 %s개 결제처리을 완료하였습니다.'); history.back();</script>",
|
"<script>alert('총 %s개중 %s개 결제처리을 완료하였습니다.'); history.back();</script>",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -50,6 +50,7 @@ class AccountService extends CustomerService
|
|||||||
if (!$entity instanceof ClientEntity) {
|
if (!$entity instanceof ClientEntity) {
|
||||||
throw new \Exception("{$formDatas['clientinfo_uid']}에 대한 고객정보를 찾을수 없습니다.");
|
throw new \Exception("{$formDatas['clientinfo_uid']}에 대한 고객정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
|
// dd($entity);
|
||||||
return $this->getClientService()->setAccount($formDatas['status'], $entity, intval($formDatas['amount']));
|
return $this->getClientService()->setAccount($formDatas['status'], $entity, intval($formDatas['amount']));
|
||||||
}
|
}
|
||||||
//결제관련 예치금 차감 처리용
|
//결제관련 예치금 차감 처리용
|
||||||
@ -61,9 +62,10 @@ class AccountService extends CustomerService
|
|||||||
'title' => "[결제차감] {$paymentEntity->getTitle()}",
|
'title' => "[결제차감] {$paymentEntity->getTitle()}",
|
||||||
'issue_at' => date('Y-m-d H:i:s'),
|
'issue_at' => date('Y-m-d H:i:s'),
|
||||||
'amount' => $paymentEntity->getAmount(),
|
'amount' => $paymentEntity->getAmount(),
|
||||||
'status' => STATUS['PAID'],
|
'status' => STATUS['WITHDRAWAL'],
|
||||||
];
|
];
|
||||||
$this->setBalance($formDatas);
|
$clientEntity = $this->setBalance($formDatas);
|
||||||
|
// dd($clientEntity);
|
||||||
return $this->getModel()->create($formDatas);
|
return $this->getModel()->create($formDatas);
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|||||||
@ -259,12 +259,12 @@ class PaymentService extends CommonService
|
|||||||
//결제 완료 처리 후 추가정보 처리
|
//결제 완료 처리 후 추가정보 처리
|
||||||
$entity = parent::modify($entity, ['pay' => PAYMENT['PAY']['ACCOUNT'], 'status' => STATUS['PAID']]);
|
$entity = parent::modify($entity, ['pay' => PAYMENT['PAY']['ACCOUNT'], 'status' => STATUS['PAID']]);
|
||||||
//Log처리
|
//Log처리
|
||||||
$this->getMylogService()->create([
|
$logEntity = $this->getMylogService()->create([
|
||||||
'title' => "[{$entity->getTitle()}] 월과금 결제처리",
|
'title' => "[{$entity->getTitle()}] 월과금 결제처리",
|
||||||
'status' => $entity->getStatus()
|
'status' => $entity->getStatus()
|
||||||
]);
|
]);
|
||||||
//예치금처리
|
//예치금처리
|
||||||
$this->getAccountService()->setPaid($entity);
|
$accountEntity = $this->getAccountService()->setPaid($entity);
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
//기본 기능부분
|
//기본 기능부분
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user