fujian_water_biz_doc/docs/evidence/rev004-accounting/rev004-writtenoff-bpm-log-fix-2026-06-30.md

33 lines
1.3 KiB
Markdown
Raw 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.

# REV004 已销/核销调整 BPM 与账务日志修复证据
日期2026-06-30
## 背景
现场反馈:提交已销调整申请后,审批开关开启但工单/审批流程中无记录;点击撤销成功后,账务日志中也看不到撤销结果。
## 修复点
- `sold-submit` 不再只写业务 formal 记录,改为调用 BPM 核销调整流程 API 创建工单与流程实例。
- 新增 `WrittenoffAdjustBpmApi`,对齐价差调整、呆坏账等已有 BPM API 调用模式。
- BPM 核销调整保存 VO 支持透传 `adjustmentNo`保证兼容日志、formal 记录、BPM 工单使用同一调整单号。
- 账务日志查询增加 `revokeOfAdjustmentNo` 聚合:撤销日志会覆盖原申请单的展示状态、处理人、处理时间与撤销成功文案。
## 验证
命令:
```bash
mvn -pl sw-business/sw-business-server -am -Dsurefire.failIfNoSpecifiedTests=false -Dtest=AccountingAdjustProcessServiceImplTest#createSoldAction_shouldCreateWrittenoffFormalPendingRecord,AccountingAdjustLogProcessServiceImplTest#getLogPage_shouldOverlaySyntheticRevokeOnOriginalAdjustment test
```
结果:`BUILD SUCCESS``Tests run: 2, Failures: 0, Errors: 0, Skipped: 0`
命令:
```bash
mvn -pl sw-module-bpm/sw-module-bpm-server -am -DskipTests compile
```
结果:`BUILD SUCCESS`