fujian_water_biz_doc/docs/evidence/rev004-accounting/2026-06-25-garbage-fee-basis-fix.md

30 lines
1.2 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.

# 垃圾费基数定额计费修复验证
日期2026-06-25
## 变更口径
- 不新增 `zero_water_collect_garbage_fee` 配置项。
- 零水量默认不收垃圾费。
- 垃圾费按 `biz_cust_water_use_scheme.basic_number` 定额收取,不再按价格体系中的水量系数、阶梯单价或固定金额配置计算。
- 存量价格配置兼容脚本:`water-backend/sql/postgresql/2026-06-25-normalize-garbage-fee-pricing.sql`
## 验证命令
```bash
mvn -pl sw-business/sw-business-server -am -Dtest=ChargeCalculateHelperTest,ChargeServiceAccountingAdjustTest,UnsoldTrialPreviewServiceImplTest -Dsurefire.failIfNoSpecifiedTests=false test
```
## 验证结果
- `ChargeCalculateHelperTest`21 tests, 0 failures, 0 errors
- `ChargeServiceAccountingAdjustTest`29 tests, 0 failures, 0 errors
- `UnsoldTrialPreviewServiceImplTest`12 tests, 0 failures, 0 errors
- 合计62 tests, 0 failures, 0 errors
## 覆盖点
- 水量重算时,垃圾费使用客户垃圾费基数,忽略垃圾费价格配置中的系数和单价。
- 水量重算目标水量为 0 时,垃圾费为 0。
- 账单生成和预览路径统一通过共享垃圾费计算 helper。