diff --git a/app/Services/Handlers/TypeV2Handler.php b/app/Services/Handlers/TypeV2Handler.php index 85ae17a..8e2aca7 100644 --- a/app/Services/Handlers/TypeV2Handler.php +++ b/app/Services/Handlers/TypeV2Handler.php @@ -100,6 +100,11 @@ class TypeV2Handler // 수정 정보 입력 (있으면 update, 없으면 insert) $modifyInfoParam['vr_sq'] = $vrSq; + + $sql = $this->modifyInfoModel->builder()->set($modifyInfoParam)->getCompiledInsert(); + CLI::write(CLI::color("\n[생성된 쿼리 예상안]:", 'yellow')); + CLI::write($sql); + 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()));