[ Fix ] - LOAN 소비 집계 정책 최종 정리: 원금 포함 및 TXN_ANALYSIS 위임 (#185) - #186
Merged
Conversation
bigwaveBigwave
requested review from
Kimd0ng,
SOOsuhyuncho,
hanjyoon01 and
shinh09
August 19, 2026 07:44
bigwaveBigwave
approved these changes
Aug 19, 2026
shinh09
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 사항
loan_interest_amount(이자만) 규칙을 폐기하고out_amount(원금+이자 전액)를 소비로 반영category='FINANCE'/고정지출 포함 로직 제거 — ai-serviceTransactionPreClassificationService([ Refactor ] - 미분석 거래 일간 소비 분류 배치 구현 #148)가 이미 저장한 값과 중복되며 정합성이 갈리던 원인이었음TXN_ANALYSIS.is_consumption/category/expense_type을 그대로 신뢰 (배치 미실행 시 그 달 집계에서 제외되는 것은 의도된 동작)MonthlyExpenseMapper.xml대폭 단순화 (SQL fragment 7개 → 1개,LEFT JOIN→INNER JOIN)loanDisbursementKeywords파라미터를MonthlyExpenseMapper/MonthlyExpenseService에서 제거 (FinancialCommitmentMapper는 방어모드 예상 납입액 추정용 별개 로직이라 그대로 유지)참고 사항
MonthlyExpenseMapperLoanRuleManualVerificationTest,DiagnosisFinalizationManualVerificationTest) 통과#169(PR [ Fix ] - LOAN 지급 판정 공통화 및 INSTALLMENT 소비 집계 누락 수정 (#169) #182) 위에서 작업 — 이 PR은 그 이후 추가된 정책 변경만 포함