Repository navigation
feat(account): [WIP] 贷款本金借还与旧账户接续(冻结) - #566
Draft
TNT-Likely wants to merge 8 commits into
Draft
TNT-Likely wants to merge 8 commits into
TNT-Likely wants to merge 8 commits into
Conversation
3 tasks done
TNT-Likely
marked this pull request as draft
October 18, 2026 11:19
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.
WIP / 已冻结(2026-10-18)
完整方案与待决问题:贷款完整改造方案。
当前实现只覆盖手动本金账户;本息拆分、还款计划、周期支出联动减本金及实际账单核对尚未实现。完整方案仍为讨论提案,尤其支出统计口径和操作复杂度未定稿,不应直接当作已批准开发范围。
本轮只沉淀文档并冻结 PR。以下保留冻结前的实现与验收记录,测试分别对应原业务提交 App
c4a52de/ Cloude4db53a,完整实服联调的 App 为a6b6c59;未将文档更新宣称为新一轮业务验收。测试资源已清理(2026-10-18):按用户要求,已停止并删除本轮贷款 QA Cloud、专用模拟器与临时数据,关闭验收网页;旧本地验收地址已失效。独立验收报告及 ZIP 保留且校验值未变,贷款分支和方案继续保留,PR 维持 Draft/WIP。
变更说明 / What & Why
贷款账户原先按估值维护欠款,银行卡无法直接转入还本。本次把贷款作为本金负债账户:银行卡转入贷款归还本金,两边金额同步减少;贷款转出到资金账户记录借入,两边同步增加。本金不计普通收支,利息和手续费另记支出。
loan-flow-v1/loan_accounting_version防止新旧端互相覆盖。配套 Cloud:**https://github.com/TNT-Likely/BeeCount-Cloud/pull/130**(`e4db53a`)。恢复开发并完成验收后,上线顺序应为 Cloud 先、App 后。
产品与边界说明:贷款本金账户。
关联 Issue / Related Issue
混合需求仅关联本次进度,不自动关闭整条 issue。
自测情况 / Self-tested
PUB_HOSTED_URL=https://pub.dev flutter test --no-pub:1035 项通过、1 项跳过(冻结前业务提交c4a52de)。flutter gen-l10n;只维护简中/英文 ARB,其他语言沿用生成回退。flutter analyze --no-pub全绿:补齐agentcore锁定依赖后为 0 error、218 warning、552 info,退出码 1;未宣称无新增告警。联调证据与未覆盖范围
完整隔离联调对应 App
a6b6c59/ Cloude4db53a:真实 iOS App、真实 Web 新增/改名/还本、App→Cloud→App、旧贷款核对、信用卡溢缴款、房产估值、QA 服务 503 恢复、重复同步及正常入口重启均通过。自动快照为 7 个账户、8 笔交易,身份、关系、币种和余额一致;普通支出 150、收入 0。最终
c4a52de只移除记账可选 UI,重跑全量 App 回归并更新同一模拟器;保留人工验收后已有的 7 个账户、9 笔交易,未重新生成 fixture 或声称重新跑过完整联调。目前仅支持个人账本、同币种本金借还。Android、真机、PostgreSQL 并发及 MCP 贷款完整协议未执行;Web 已打开的详情沿用统计快照,跨端变更后需重开刷新。旧 Cloud 不具备新能力时,App 会提示升级而非继续推送贷款数据。
脱敏离线 HTML、截图及 ZIP 已在本机单独交付,未进入源码或上传到 PR:
beecount-loan-qa-2026-10-18.zip,SHA256b6f0d55ac3153691ad2379b5fee2a680edfab73fba348226ba975fc42c091da1。beecount-loan-minimal-entry-qa-2026-10-18.zip,SHA2569e99f660c393e9efc1a1f542ad8a10bd0f0287df52955aac889776c234da25cd。人工验收环境已按用户要求完整清理;独立报告保留,本 PR 继续冻结。