수정
This commit is contained in:
@@ -50,6 +50,7 @@ class TypeSHandler
|
||||
throw new Exception("Receipt Insert 실패: " . json_encode($this->receiptModel->errors()));
|
||||
}
|
||||
$rcptSq = $this->receiptModel->getInsertID();
|
||||
$receiptInsertSql = (string)$this->receiptModel->getLastQuery(); // Receipt SQL 캡처
|
||||
CLI::write(CLI::color("✅ Receipt 저장 성공 (ID: $rcptSq)", 'blue'));
|
||||
|
||||
// 2. Result 데이터 저장
|
||||
@@ -63,8 +64,8 @@ class TypeSHandler
|
||||
throw new Exception("Result Insert 실패: $errors");
|
||||
}
|
||||
|
||||
$insertedResultSql = (string)$this->resultModel->getLastQuery();
|
||||
write_custom_log("Result Insert 성공 | SQL: $insertedResultSql", 'INFO', 'service');
|
||||
$resultInsertSql = (string)$this->resultModel->getLastQuery(); // Result SQL 캡처
|
||||
write_custom_log("Result Insert 성공 | SQL: $resultInsertSql", 'INFO', 'service');
|
||||
CLI::write(CLI::color('✅ Result 저장 성공', 'blue'));
|
||||
|
||||
// 3. 트랜잭션 커밋
|
||||
@@ -76,8 +77,8 @@ class TypeSHandler
|
||||
|
||||
// 4. 로그 기록
|
||||
write_custom_log("Type S 처리 성공 | Atcl: $articleNumber | Rcpt_sq: $rcptSq", 'INFO', 'service');
|
||||
write_custom_log("Receipt Insert SQL: " . (string)$this->receiptModel->getLastQuery(), 'INFO', 'service');
|
||||
write_custom_log("Result Insert SQL: " . (string)$this->resultModel->getLastQuery(), 'INFO', 'service');
|
||||
write_custom_log("Receipt Insert SQL: " . $receiptInsertSql, 'INFO', 'service');
|
||||
write_custom_log("Result Insert SQL: " . $resultInsertSql, 'INFO', 'service');
|
||||
|
||||
// 5. 네이버 예약 정보 동기화 (비동기)
|
||||
// try {
|
||||
|
||||
@@ -32,8 +32,8 @@ class TypeSParameterMapper extends BaseParameterMapper
|
||||
// 평면도 여부 결정
|
||||
$groundPlan = in_array($rawData['realEstateTypeCode'] ?? '', ['C01', 'C02']) ? 'N' : 'Y';
|
||||
|
||||
// 거래 유형 매핑
|
||||
$tradeType = $this->mapTradeType($rawData['tradeType'] ?? null);
|
||||
// 거래 유형 코드 (tradeTypeCode 우선, 없으면 tradeType 한글을 변환)
|
||||
$tradeType = $rawData['tradeTypeCode'] ?? $this->mapTradeType($rawData['tradeType'] ?? null);
|
||||
|
||||
return [
|
||||
'comp_sq' => '2',
|
||||
|
||||
Reference in New Issue
Block a user