fix:저장된 계정과목 매칭 키 형식 통일

- decimal과 float 형식 차이로 매칭 실패하는 문제 수정
- 금액을 정수로 변환하여 키 생성

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-23 11:15:18 +09:00
parent 5cd15ff55b
commit cfbe014731
2 changed files with 6 additions and 5 deletions

View File

@@ -422,8 +422,8 @@ private function parseTransactionLogs($resultData, string $defaultBankName = '',
$bankAccountNum = $log->BankAccountNum ?? '';
// 고유 키 생성하여 저장된 데이터와 매칭
$uniqueKey = implode('|', [$bankAccountNum, $transDT, $deposit, $withdraw, $balance]);
// 고유 키 생성하여 저장된 데이터와 매칭 (숫자는 정수로 변환하여 형식 통일)
$uniqueKey = implode('|', [$bankAccountNum, $transDT, (int) $deposit, (int) $withdraw, (int) $balance]);
$savedItem = $savedData?->get($uniqueKey);
$logItem = [