From 54f0a2a4d266d6eb030dbe2b0fb7b1605c8d1af3 Mon Sep 17 00:00:00 2001 From: jjstyle Date: Wed, 4 Feb 2026 21:27:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Handlers/TypeV2Handler.php | 18 +++--------------- .../ParameterMapper/TypeV2ParameterMapper.php | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/app/Services/Handlers/TypeV2Handler.php b/app/Services/Handlers/TypeV2Handler.php index c141b3e..85ae17a 100644 --- a/app/Services/Handlers/TypeV2Handler.php +++ b/app/Services/Handlers/TypeV2Handler.php @@ -99,23 +99,11 @@ class TypeV2Handler CLI::write(CLI::color('✅ ArticleInfoEtc 저장 성공', 'blue')); // 수정 정보 입력 (있으면 update, 없으면 insert) - // if (!$this->modifyInfoModel->saveModifyInfo($vrSq, $modifyInfoParam)) { $modifyInfoParam['vr_sq'] = $vrSq; - - try { - $sql = $this->modifyInfoModel->builder() - ->set($modifyInfoParam) - ->getCompiledInsert(); // Insert/Replace 문을 문자열로 컴파일만 함 - CLI::write(CLI::color("\n[Generated SQL]: ", 'cyan') . $sql); - } catch (\Exception $e) { - // 아마 여기서 'Array to string conversion' 에러가 잡힐 겁니다. - CLI::write(CLI::color("\n[Error during SQL generation]: ", 'red') . $e->getMessage()); + if (!$this->modifyInfoModel->replace($modifyInfoParam)) { + CLI::write(CLI::color('❌ modifyInfoParam 저장 실패 :: ' . json_encode($modifyInfoParam), 'red')); + throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . " sql: " . $this->modifyInfoModel->getLastQuery())); } - // if (!$this->modifyInfoModel->replace($modifyInfoParam)) { - - // CLI::write(CLI::color('❌ ModifyInfo 저장 실패 :: ' . json_encode($modifyInfoParam , JSON_UNESCAPED_UNICODE), 'red')); - // throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . "sql: " . $this->modifyInfoModel->getLastQuery())); - // } CLI::write(CLI::color('✅ ModifyInfo 저장 성공', 'blue')); // URL 이미지 저장 (v2_url_img_save 테이블) diff --git a/app/Services/ParameterMapper/TypeV2ParameterMapper.php b/app/Services/ParameterMapper/TypeV2ParameterMapper.php index 123972c..fabc0fb 100644 --- a/app/Services/ParameterMapper/TypeV2ParameterMapper.php +++ b/app/Services/ParameterMapper/TypeV2ParameterMapper.php @@ -201,7 +201,7 @@ class TypeV2ParameterMapper extends BaseParameterMapper : ($address['jibunAddress'] ?? null); return [ - 'atcl_no' => $articleNumber, + // 'atcl_no' => $articleNumber, 'bild_nm' => $address['buildingName'] ?? null, 'rm_no' => $address['hoName'] ?? null, 'floor' => $floor['correspondenceFloorCount'] ?? null,