Skip to content

fix : 필터링 로직 ver2.5로 변경#24

Open
zwo-n wants to merge 12 commits into
mainfrom
zwo-n/fix/filtering-ver2.0
Open

fix : 필터링 로직 ver2.5로 변경#24
zwo-n wants to merge 12 commits into
mainfrom
zwo-n/fix/filtering-ver2.0

Conversation

@zwo-n
Copy link
Copy Markdown
Collaborator

@zwo-n zwo-n commented May 10, 2026

변경점 👍

  • ScoreWeightEnum 배점 수정
  • MatchScoreService 정부/시중은행 가중치 분리 처리 및 점수 로직 추가
  • RateCalculatorService 그룹1/2/3 분류 및 그룹별 로직 추가
  • SearchService 거주 지역 필터링 product_keyword기반 변경

버그 해결 💊

MatchScoreService에서 bankCondScore계산 시 GOV_DEPOSIT 키로 잘못 참조하던 버그 수정

스크린샷 🖼

기본 상황
스크린샷 2026-05-10 오후 11 09 37
결과

{
    {
    "governmentRanked": [
        {
            "productId": 2,
            "productName": "청년내일채움공제",
            "source": "ONTONG",
            "totalScore": 100.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 52.94,
            "depositScore": 47.06,
            "bankCondScore": 0.0
        },
        {
            "productId": 3,
            "productName": "청년우대형 청약통장",
            "source": "ONTONG",
            "totalScore": 60.29,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 13.24,
            "depositScore": 47.06,
            "bankCondScore": 0.0
        }
    ],
    "bankRanked": [
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        },
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        }
    ],
    "rateRanked": [
        {
            "productId": 2,
            "productName": "청년내일채움공제",
            "source": "ONTONG",
            "baseRate": 10.0,
            "achievableRate": 10.0,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "baseRate": 3.8,
            "achievableRate": 4.5,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "baseRate": 3.45,
            "achievableRate": 3.45,
            "isSubscription": false,
            "subscriptionNote": null
        }
    ],
    "subscriptionProducts": [
        {
            "productId": 3,
            "productName": "청년우대형 청약통장",
            "source": "ONTONG",
            "baseRate": null,
            "achievableRate": null,
            "isSubscription": true,
            "subscriptionNote": "청약: 금리 비교 대상 아님"
        }
    ]
}
}

저축기간 1년 선택 ( PeriodScore 부분 점수 )

스크린샷 2026-05-10 오후 11 14 41
{
    "governmentRanked": [
        {
            "productId": 2,
            "productName": "청년내일채움공제",
            "source": "ONTONG",
            "totalScore": 60.294117647058826,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 13.23529411764706,
            "depositScore": 47.05882352941177,
            "bankCondScore": 0.0
        },
        {
            "productId": 3,
            "productName": "청년우대형 청약통장",
            "source": "ONTONG",
            "totalScore": 60.294117647058826,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 13.23529411764706,
            "depositScore": 47.05882352941177,
            "bankCondScore": 0.0
        }
    ],
    "bankRanked": [
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        },
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        }
    ],
    "rateRanked": [
        {
            "productId": 2,
            "productName": "청년내일채움공제",
            "source": "ONTONG",
            "baseRate": 10.0,
            "achievableRate": 10.0,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 3,
            "productName": "청년우대형 청약통장",
            "source": "ONTONG",
            "baseRate": 4.5,
            "achievableRate": 4.5,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "baseRate": 3.8,
            "achievableRate": 4.5,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "baseRate": 3.45,
            "achievableRate": 3.45,
            "isSubscription": false,
            "subscriptionNote": null
        }
    ],
    "subscriptionProducts": []
}

납입 한도 초과 (depositScore 감점 확인)
스크린샷 2026-05-10 오후 11 16 19

{
    "governmentRanked": [],
    "bankRanked": [
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        }
    ],
    "rateRanked": [
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "baseRate": 3.45,
            "achievableRate": 3.45,
            "isSubscription": false,
            "subscriptionNote": null
        }
    ],
    "subscriptionProducts": []
}

군복무 신분 선택 (identityScore 변경 확인)
스크린샷 2026-05-10 오후 11 18 06

{
    "governmentRanked": [],
    "bankRanked": [
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        },
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "totalScore": 85.0,
            "benefitScore": 0.0,
            "periodScore": 0.0,
            "identityScore": 10.0,
            "depositScore": 75.0,
            "bankCondScore": 0.0
        }
    ],
    "rateRanked": [
        {
            "productId": 4,
            "productName": "청년우대적금",
            "source": "FSS",
            "baseRate": 3.8,
            "achievableRate": 4.5,
            "isSubscription": false,
            "subscriptionNote": null
        },
        {
            "productId": 1,
            "productName": "e-쎄이프 정기예금",
            "source": "FSS",
            "baseRate": 3.45,
            "achievableRate": 3.45,
            "isSubscription": false,
            "subscriptionNote": null
        }
    ],
    "subscriptionProducts": []
}

비고 ✏

테스트 시, 예외 상황은 잘 처리되는 것으로 확인되오나, product_keyword 벨유가 포함되어 있지 않아 정확한 테스트 결과라고 보기에는 한계가 있을 듯 합니다...
편하게 코멘트 남겨주세요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants