fix/deposits-decimal
main
问题:押金管理页一直显示「押金数据加载失败」,但 /api/deposits 返回 200。\n\n根因:前端 depositsSchema 要求 amount 为 number,而 deposit 实体的 decimal 列没有 transformer(TypeORM decimal 默认以字符串返回,如 \500.00\),zod 校验恒失败。\n\n修复:给 deposit.entity.ts 的 amount/refundAmount/deductionAmount 与 deposit-installment.entity.ts 的 amount 补上与 bill/wallet 一致的数字 transformer,接口金额恢复 number。\n\n验证:接口实测 amount 500 (int);押金页浏览器实测正常渲染;deposit 相关测试 19/19、typecheck/lint 通过。无数据库迁移。
No dependencies set.
The note is not visible to the blocked user.
问题:押金管理页一直显示「押金数据加载失败」,但 /api/deposits 返回 200。\n\n根因:前端 depositsSchema 要求 amount 为 number,而 deposit 实体的 decimal 列没有 transformer(TypeORM decimal 默认以字符串返回,如 \500.00\),zod 校验恒失败。\n\n修复:给 deposit.entity.ts 的 amount/refundAmount/deductionAmount 与 deposit-installment.entity.ts 的 amount 补上与 bill/wallet 一致的数字 transformer,接口金额恢复 number。\n\n验证:接口实测 amount 500 (int);押金页浏览器实测正常渲染;deposit 相关测试 19/19、typecheck/lint 通过。无数据库迁移。