fujian_water_biz_doc/docs/guides/REV004_CURRENT_TRUTH_MATRIX.md
tangweijie ba58013139 Refresh REV004 current truth matrix after price-diff merge
This updates the REV004 current-truth matrix to reflect that PRICE_DIFF_ADJUST
is now an independent formal-table object on the mainline, and refreshes the
merge/evidence anchors accordingly.

Constraint: Matrix must match current backend develop and docs main truth after PR #78 / docs evidence merge
Rejected: Keep the earlier matrix unchanged | it now incorrectly reports PRICE_DIFF_ADJUST as not independent
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Continue refreshing this matrix only after verified mainline merges, not from feature-branch intent alone
Tested: Cross-checked against origin/develop merge commit 1964c782... and origin/main merge commit c741164...
Not-tested: No document export/render pipeline executed for this matrix refresh
2026-04-17 15:43:50 +08:00

5.4 KiB
Raw Blame History

REV004 当前主线真值矩阵

主线基线

  • backendsw-system-cloud/develop @ 9462f3a12728b83bfe31e0b74c526f4256f5b361
  • docsfujian_water_biz_doc/main @ b5efa3b2480b1a0b8a00b728ac434f833787b6b4
  • 生成时间:2026-04-17 15:00 +08:00

一、对象总览

对象 objectType / 专属域 formal-table 状态 主表 / 明细表 主接口状态 strict formal-first 状态
预存调整 prestorage 已独立 biz_prestorage_adjust / biz_prestorage_adjust_detail 已接线 部分完成
坏账调整 BAD_DEBT_RECORD 已独立 biz_bad_debt_adjust / biz_bad_debt_adjust_detail 已接线 主链路完成
已销调整/核销 WRITTENOFF_ADJUST 已独立 biz_writtenoff_adjust / biz_writtenoff_adjust_detail 已接线 主链路完成
违约金减免 LATE_FEE_REDUCE 已独立 biz_latefee_reduce / biz_latefee_reduce_detail 已接线 主链路完成
分账调整 SPLIT_ADJUST 已独立 biz_split_adjust / biz_split_adjust_detail 已接线 专属接口完成
价差调整 PRICE_DIFF_ADJUST 已独立 biz_price_diff_adjust / biz_price_diff_adjust_detail 已接线 主链路完成
红冲记录 REDINK_RECORD 未独立 兼容接口 未完成

二、已独立对象明细

1. 价差调整 PRICE_DIFF_ADJUST

  • DDLsql/rev004/REV004_price_diff_formal_tables_deploy.sql
  • 表:biz_price_diff_adjustbiz_price_diff_adjust_detail
  • 接口:
    • POST /admin-api/business/accounting-adjust/unsold-price-diff-submit
    • POST /admin-api/business/accounting-adjust/unsold-price-diff-batch-submit
    • POST /admin-api/business/accounting-adjust/approve
    • POST /admin-api/business/accounting-adjust/reject
    • GET /admin-api/business/accounting-adjust/get
    • GET /admin-api/business/accounting-adjust/page
  • 当前判断:
    • submit / approve / reject / get / page 已形成 formal-table 主链路
    • 仍保留 legacy operat_log 兼容轨迹
    • 当前按最小 formal-table 模式恢复,尚未一比一回归旧系统 PM_PRICE_RECORDS / DETAILS 全字段语义

2. 预存调整(退款 / 转账)

  • DDLsql/rev004/REV004_prestorage_formal_tables_deploy.sql
  • 表:biz_prestorage_adjustbiz_prestorage_adjust_detail
  • 接口:
    • POST /admin-api/business/accounting-adjust/prestorage-submit
    • POST /admin-api/business/accounting-adjust/prestorage-revoke
    • GET /admin-api/business/accounting-adjust/prestorage-process
    • GET /admin-api/business/accounting-adjust/prestorage-attachments
    • GET /admin-api/business/accounting-adjust/prestorage-page
    • GET /admin-api/business/accounting-adjust/prestorage-detail
  • 当前判断:
    • submit / revoke / page / detail 已是 formal-table 主链路
    • process / attachments 仍保留 legacy / unified fallback

3. 坏账调整

  • DDLsql/rev004/REV004_bad_debt_formal_tables_deploy.sql
  • 表:biz_bad_debt_adjustbiz_bad_debt_adjust_detail
  • 接线口径:统一 accounting-adjust submit / approve / reject / page / detail
  • 当前判断:主链路已 formal-first

4. 已销调整 / 核销

  • DDLsql/rev004/REV004_writtenoff_formal_tables_deploy.sql
  • 表:biz_writtenoff_adjustbiz_writtenoff_adjust_detail
  • 接口:
    • POST /admin-api/business/accounting-adjust/sold-submit
    • POST /admin-api/business/accounting-adjust/approve
    • POST /admin-api/business/accounting-adjust/reject
    • GET /admin-api/business/accounting-adjust/get
    • GET /admin-api/business/accounting-adjust/page
  • 当前判断:主链路已 formal-first且已补事务边界 / fail-fast

5. 违约金减免

  • DDLsql/rev004/REV004_latefee_formal_tables_deploy.sql
  • 表:biz_latefee_reducebiz_latefee_reduce_detail
  • 接口:
    • POST /admin-api/business/accounting-adjust/unsold-late-fee-reduce-submit
    • POST /admin-api/business/accounting-adjust/unsold-late-fee-reduce-batch-submit
  • 当前判断formal-table 主链路已建立

6. 分账调整

  • 表:biz_split_adjustbiz_split_adjust_detail
  • 专属接口:
    • POST /business/split-adjust/submit
    • GET /business/split-adjust/page
    • GET /business/split-adjust/detail
    • GET /business/split-adjust/result
  • 当前判断:已独立为专属对象域
  • 备注:sql/rev004/ 目录下当前未看到单独 split deploy 脚本,说明库结构来源可能更早或另有维护路径

三、未独立对象

1. 红冲记录 REDINK_RECORD

  • 当前未见独立 formal-table 主线
  • 仍属于兼容口径对象

四、当前最适合的后续优先级

  1. prestorage process / attachments strict formal-first 收口
  2. REDINK_RECORD 是否 formal-table 化
  3. 统一补一版“对象 → 表 → 接口 → 真值口径”对外联调说明

五、证据锚点

  • backend 已合入:
    • PR #77 -> 9462f3a12728b83bfe31e0b74c526f4256f5b361writtenoff
    • PR #78 -> 1964c7823291cd4972c72c50ffcad154f3a74b4cprice-diff
  • docs 已合入:
    • b5efa3b2480b1a0b8a00b728ac434f833787b6b4(前一轮矩阵基线)
    • c741164fa48dd79f4c43ffb15e3b093933dc642cprice-diff evidence
  • fresh smoke evidence
    • docs/evidence/rev004-writtenoff-formal-table-dev-db-apply-2026-04-17.md
    • docs/evidence/rev004-price-diff-formal-table-dev-db-apply-2026-04-17.md
  • formal-table 状态矩阵:docs/guides/REV004_FORMAL_TABLE_STATUS_MATRIX.md