This commit is contained in:
2026-02-04 21:27:20 +09:00
parent 9f20f4347a
commit 54f0a2a4d2
2 changed files with 4 additions and 16 deletions

View File

@@ -99,23 +99,11 @@ class TypeV2Handler
CLI::write(CLI::color('✅ ArticleInfoEtc 저장 성공', 'blue')); CLI::write(CLI::color('✅ ArticleInfoEtc 저장 성공', 'blue'));
// 수정 정보 입력 (있으면 update, 없으면 insert) // 수정 정보 입력 (있으면 update, 없으면 insert)
// if (!$this->modifyInfoModel->saveModifyInfo($vrSq, $modifyInfoParam)) {
$modifyInfoParam['vr_sq'] = $vrSq; $modifyInfoParam['vr_sq'] = $vrSq;
if (!$this->modifyInfoModel->replace($modifyInfoParam)) {
try { CLI::write(CLI::color('❌ modifyInfoParam 저장 실패 :: ' . json_encode($modifyInfoParam), 'red'));
$sql = $this->modifyInfoModel->builder() throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . " sql: " . $this->modifyInfoModel->getLastQuery()));
->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('❌ 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')); CLI::write(CLI::color('✅ ModifyInfo 저장 성공', 'blue'));
// URL 이미지 저장 (v2_url_img_save 테이블) // URL 이미지 저장 (v2_url_img_save 테이블)

View File

@@ -201,7 +201,7 @@ class TypeV2ParameterMapper extends BaseParameterMapper
: ($address['jibunAddress'] ?? null); : ($address['jibunAddress'] ?? null);
return [ return [
'atcl_no' => $articleNumber, // 'atcl_no' => $articleNumber,
'bild_nm' => $address['buildingName'] ?? null, 'bild_nm' => $address['buildingName'] ?? null,
'rm_no' => $address['hoName'] ?? null, 'rm_no' => $address['hoName'] ?? null,
'floor' => $floor['correspondenceFloorCount'] ?? null, 'floor' => $floor['correspondenceFloorCount'] ?? null,