feat: 카드 알림 계좌 자동선택 - 카드사 표기 차이 유연 매칭
- CardIssuerMatcher: 공백·접미사(카드/은행/페이/뱅크) 제거 + 별칭 통합(KB↔국민, 농협↔NH, 비씨↔BC, 씨티↔시티) · KB카드/국민카드/KB국민/국민 어떻게 등록해도 KB국민카드 알림에 자동 매칭 - AccountService.overlaps 가 CardIssuerMatcher 사용 - 단위테스트 4 추가 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
eded44a476
commit
2da43b2f77
@@ -277,10 +277,9 @@ public class AccountService {
|
||||
return cards.size() == 1 ? cards.get(0).getId() : null;
|
||||
}
|
||||
|
||||
/** 양방향 부분일치 (KB국민 ↔ 국민 등) */
|
||||
/** 표기 차이를 흡수한 카드사 매칭 (KB국민 ↔ 국민 ↔ 국민카드 ↔ KB카드 등) */
|
||||
private boolean overlaps(String walletField, String issuer) {
|
||||
if (walletField == null || issuer == null) return false;
|
||||
return walletField.contains(issuer) || issuer.contains(walletField);
|
||||
return CardIssuerMatcher.matches(walletField, issuer);
|
||||
}
|
||||
|
||||
/* ===================== 상환/납부 ===================== */
|
||||
|
||||
Reference in New Issue
Block a user