Files
ccdi/docs/reports/implementation/2026-05-15-credit-card-field-prefix-implementation.md

31 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 征信解析信用卡字段前缀调整实施记录
## 背景
征信解析负债字段中,信用卡字段前缀需要由 `uncle_credit_cart_*` 调整为 `uncle_credit_card_*`,保持字段命名与信用卡含义一致。
## 修改内容
1. 后端字段装配
- `CreditInfoPayloadAssembler` 中信用卡负债映射前缀由 `uncle_credit_cart` 调整为 `uncle_credit_card`
2. Mock 字段生成
- `lsfx-mock-server/config/credit_feature_schema.json` 中信用卡字段同步调整为:
- `uncle_credit_card_bal`
- `uncle_credit_card_lmt`
- `uncle_credit_card_state`
3. 文档
- `docs/design/2026-03-23-credit-info-maintenance-design.md` 中信用卡字段前缀同步调整。
## 影响范围
- 仅影响征信解析 payload 中信用卡负债字段的读取与本地 Mock 生成字段。
- 不涉及接口成功判断、数据库结构、前端页面和其他负债类型。
## 验证
- `mvn -pl ccdi-info-collection -am -Dtest=CreditInfoPayloadAssemblerTest,CcdiCreditInfoServiceImplTest -Dsurefire.failIfNoSpecifiedTests=false test`通过10 个用例成功。
- `cd lsfx-mock-server && python3 -m pytest tests/test_credit_api.py tests/test_startup.py -q`通过9 个用例成功。
- `git diff --check`:通过。