dbmsv4 init...3

This commit is contained in:
최준흠 2025-12-15 11:49:55 +09:00
parent 5b9e3d59a5
commit ca9e329634

View File

@ -149,12 +149,6 @@ class PaymentService extends CommonService
//기본 기능부분 //기본 기능부분
protected function getEntity_process(mixed $entity): PaymentEntity protected function getEntity_process(mixed $entity): PaymentEntity
{ {
$errorMessage = sprintf(
"\n------Last Query (%s)-----\nQuery: %s\n------------------------------\n",
static::class . '->' . __FUNCTION__,
$this->model->getLastQuery() ?? "No Query Available",
);
log_message('error', $errorMessage);
return $entity; return $entity;
} }
//List 검색용 //List 검색용
@ -316,6 +310,11 @@ class PaymentService extends CommonService
'status' => STATUS['UNPAID'] 'status' => STATUS['UNPAID']
]); ]);
if (!$entity instanceof PaymentEntity) { //해당조건에 맞는게 없으면 생성 if (!$entity instanceof PaymentEntity) { //해당조건에 맞는게 없으면 생성
log_message('error', sprintf(
"\n------Last Query (%s)-----\nQuery: %s\n------------------------------\n",
static::class . '->' . __FUNCTION__,
$this->model->getLastQuery() ?? "No Query Available",
));
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 기존 서비스정보의 {$oldServiceEntity->getPK()}에 해당하는 결제정보가 존재하지 않습니다."); throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: 기존 서비스정보의 {$oldServiceEntity->getPK()}에 해당하는 결제정보가 존재하지 않습니다.");
} }
//신규 서비스정보에 맞게 수정 //신규 서비스정보에 맞게 수정